javax.xml.bind

Class UnmarshalException

Implemented Interfaces:
Serializable

public class UnmarshalException
extends JAXBException

See Also:
Serialized Form

Constructor Summary

UnmarshalException(String message)
UnmarshalException(String message, String errorCode)
UnmarshalException(String message, String errorCode, Throwable exception)
UnmarshalException(String message, Throwable exception)
UnmarshalException(Throwable exception)

Method Summary

Methods inherited from class javax.xml.bind.JAXBException

getCause, getErrorCode, getLinkedException, setLinkedException

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

UnmarshalException

public UnmarshalException(String message)
Usages and Demos :

View More Examples of UnmarshalException(String message)
   1:     catch (IllegalArgumentException e) {
   2:       throw new UnmarshalException(e);
   3:     }
   4:   }

View Full Code Here
   1:     catch (URISyntaxException e) {
   2:       throw new UnmarshalException(e);
   3:     }
   4:   }

View Full Code Here
   1:         assertTrue("Invalid exception conversion", JaxbUtils
   2:                 .convertJaxbException(new UnmarshalException("")) instanceof JaxbUnmarshallingFailureException);
   3:     }
   4: 
   5:     public void testConvertValidationException() {

View Full Code Here
   1:     public UnmarshalException createUnmarshalException() {
   2:         return new UnmarshalException( getMessage(), nestedException );
   3:     }
   4: }

View Full Code Here
   1:       {
   2:          throw new javax.xml.bind.UnmarshalException(e.toString());
   3:       }
   4:       return null;
   5:    }

View Full Code Here

UnmarshalException

public UnmarshalException(String message,
                          String errorCode)
Usages and Demos :

View More Examples of UnmarshalException(String message,String errorCode)
   1:     public Status Ctor004() {
   2:         UnmarshalException me = new UnmarshalException(msg, err);
   3:         if (me.getMessage() != msg) {
   4:         ...
   5:     public Status Ctor005() {
   6:         UnmarshalException me = new UnmarshalException(msg, err);
   7:         if (me.getErrorCode() != err) {
   8:         ...
   9:     public Status Ctor006() {
  10:         UnmarshalException me = new UnmarshalException(msg, err);
  11:         if (me.getLinkedException() != null) {

View Full Code Here
   1:           if (! mapping.getAccessor().checkOrder(i++, binder.getEventHandler()))
   2:             throw new UnmarshalException(L.l("Child <{0}> misordered", name));
   3: 
   4:           mapping.bindFrom(binder, node, ret);
   5:         }

View Full Code Here

UnmarshalException

public UnmarshalException(String message,
                          String errorCode,
                          Throwable exception)
Usages and Demos :

View More Examples of UnmarshalException(String message,String errorCode,Throwable exception)
   1:     public Status Ctor007() {
   2:         UnmarshalException me = new UnmarshalException(msg, err, linkedException);
   3:         if (me.getMessage() != msg) {
   4:         ...
   5:     public Status Ctor008() {
   6:         UnmarshalException me = new UnmarshalException(msg, err, linkedException);
   7:         if (me.getErrorCode() != err) {
   8:         ...
   9:     public Status Ctor009() {
  10:         UnmarshalException me = new UnmarshalException(msg, err, linkedException);
  11:         if (me.getLinkedException() != linkedException) {

View Full Code Here

UnmarshalException

public UnmarshalException(String message,
                          Throwable exception)
Usages and Demos :

View More Examples of UnmarshalException(String message,Throwable exception)
   1:     public Status Ctor004() {
   2:         UnmarshalException me = new UnmarshalException(msg, err);
   3:         if (me.getMessage() != msg) {
   4:         ...
   5:     public Status Ctor005() {
   6:         UnmarshalException me = new UnmarshalException(msg, err);
   7:         if (me.getErrorCode() != err) {
   8:         ...
   9:     public Status Ctor006() {
  10:         UnmarshalException me = new UnmarshalException(msg, err);
  11:         if (me.getLinkedException() != null) {

View Full Code Here
   1:           if (! mapping.getAccessor().checkOrder(i++, binder.getEventHandler()))
   2:             throw new UnmarshalException(L.l("Child <{0}> misordered", name));
   3: 
   4:           mapping.bindFrom(binder, node, ret);
   5:         }

View Full Code Here

UnmarshalException

public UnmarshalException(Throwable exception)
Usages and Demos :

View More Examples of UnmarshalException(Throwable exception)
   1:     catch (IllegalArgumentException e) {
   2:       throw new UnmarshalException(e);
   3:     }
   4:   }

View Full Code Here
   1:     catch (URISyntaxException e) {
   2:       throw new UnmarshalException(e);
   3:     }
   4:   }

View Full Code Here
   1:         assertTrue("Invalid exception conversion", JaxbUtils
   2:                 .convertJaxbException(new UnmarshalException("")) instanceof JaxbUnmarshallingFailureException);
   3:     }
   4: 
   5:     public void testConvertValidationException() {

View Full Code Here
   1:     public UnmarshalException createUnmarshalException() {
   2:         return new UnmarshalException( getMessage(), nestedException );
   3:     }
   4: }

View Full Code Here
   1:       {
   2:          throw new javax.xml.bind.UnmarshalException(e.toString());
   3:       }
   4:       return null;
   5:    }

View Full Code Here