Top Description Fields Constructors Methods
com.fasterxml.aalto.impl

public Class StreamExceptionBase

extends XMLStreamException
Class Inheritance
Known Direct Subclasses
com.fasterxml.aalto.WFCException, com.fasterxml.aalto.impl.IoStreamException
Annotations
@SuppressWarnings:serial
Imports
javax.xml.stream.*

Base class for all XMLStreamException instances that we use. Sometimes used as is, but usually there should be more specific sub-class that indicates class of exception.

Field Summary

Modifier and TypeField and Description
pack-priv final String
mMsg

D'oh.

Inherited from javax.xml.stream.XMLStreamException:
locationnested

Constructor Summary

AccessConstructor and Description
public
public
public
public

Method Summary

Modifier and TypeMethod and Description
protected String
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Method is overridden for two main reasons: first, default method does not display public/system id information, even if it exists, and second, default implementation can not handle nested Location information.
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.
Inherited from javax.xml.stream.XMLStreamException:
getLocationgetNestedException

Field Detail

mMsgback to summary
pack-priv final String mMsg

D'oh. Super-class munges and hides the message, have to duplicate here

Constructor Detail

StreamExceptionBaseback to summary
public StreamExceptionBase(String msg)
StreamExceptionBaseback to summary
public StreamExceptionBase(Throwable th)
StreamExceptionBaseback to summary
public StreamExceptionBase(String msg, Location loc)
StreamExceptionBaseback to summary
public StreamExceptionBase(String msg, Location loc, Throwable th)

Method Detail

getLocationDescback to summary
protected String getLocationDesc()
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Method is overridden for two main reasons: first, default method does not display public/system id information, even if it exists, and second, default implementation can not handle nested Location information.

Returns:String

Doc from java.lang.Throwable.getMessage.

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override