public class StreamBaseException extends Exception implements LocatedItem, Serializable
StreamBaseRuntimeException
,
Serialized FormConstructor and Description |
---|
StreamBaseException(LocatedItem loc,
String msg)
Constructor
|
StreamBaseException(LocatedItem loc,
String msg,
Throwable cause)
Constructor
|
StreamBaseException(LocatedItem loc,
Throwable cause)
Constructor
|
StreamBaseException(String message)
Constructor
|
StreamBaseException(String message,
Throwable cause)
Constructor
|
StreamBaseException(Throwable cause)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
asXmlStringSingle(Throwable t,
StringBuilder s,
int formateterFlags)
Create an XML string that represents the exception
|
String |
asXmlStringStrict()
Create an XML String that represents this Exception
Strictly preserve the original message that was passed
to this exception, which is different from other asXmlString*() functions,
which decorate the message with additional location data
|
static void |
asXmlStringStrict(Throwable t,
StringBuilder s)
Create an XML String that represents the Exception
|
boolean |
equals(Object obj) |
Map<String,String> |
getParams()
Get parameters
|
int |
hashCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLocation
public StreamBaseException(String message)
message
- Exception messagepublic StreamBaseException(String message, Throwable cause)
message
- Exception messagecause
- Exception causepublic StreamBaseException(Throwable cause)
cause
- Exception causepublic StreamBaseException(LocatedItem loc, String msg)
loc
- Item locationmsg
- Exception messagepublic StreamBaseException(LocatedItem loc, String msg, Throwable cause)
loc
- Item locationmsg
- Exception messagecause
- Exception causepublic StreamBaseException(LocatedItem loc, Throwable cause)
loc
- Source locationcause
- Causepublic String asXmlStringStrict()
public static void asXmlStringStrict(Throwable t, StringBuilder s)
Strictly preserve the original message that was passed to the exception, which is different from other asXmlString*() functions, which decorate the message with additional location data
t
- Exception to convert to an XML strings
- XML String returned herepublic static void asXmlStringSingle(Throwable t, StringBuilder s, int formateterFlags)
t
- Exception to convert to XML strings
- XML string returned hereformateterFlags
- Formatting flags See ErrorFormatter
.Copyright © 2015–2019 Cloud Software Group, Inc.. All rights reserved.