Package com.streambase.sb
Class StreamBaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.streambase.sb.StreamBaseException
- All Implemented Interfaces:
com.streambase.sb.util.LocatedItem
,Serializable
- Direct Known Subclasses:
AlreadyRegisteredException
,ArtifactException
,ClusterRedirectException
,LiveViewException
,NetworkException
,NotImplementedException
,NotSupportedException
,ResourceNotFoundException
,SchemaValidationException
,StreamBaseListException
,TupleException
,TypecheckException
,URIException
The base class of all StreamBase non-runtime exceptions.
- See Also:
-
Constructor Summary
ConstructorDescriptionStreamBaseException
(com.streambase.sb.util.LocatedItem loc, String msg) ConstructorStreamBaseException
(com.streambase.sb.util.LocatedItem loc, String msg, Throwable cause) ConstructorStreamBaseException
(com.streambase.sb.util.LocatedItem loc, Throwable cause) ConstructorStreamBaseException
(String message) ConstructorStreamBaseException
(String message, Throwable cause) ConstructorStreamBaseException
(Throwable cause) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic void
asXmlStringSingle
(Throwable t, StringBuilder s, int formateterFlags) Create an XML string that represents the exceptionCreate 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 datastatic void
Create an XML String that represents the Exceptionboolean
Get parametersint
hashCode()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StreamBaseException
Constructor- Parameters:
message
- Exception message
-
StreamBaseException
Constructor- Parameters:
message
- Exception messagecause
- Exception cause
-
StreamBaseException
Constructor- Parameters:
cause
- Exception cause
-
StreamBaseException
Constructor- Parameters:
loc
- Item locationmsg
- Exception message
-
StreamBaseException
Constructor- Parameters:
loc
- Item locationmsg
- Exception messagecause
- Exception cause
-
StreamBaseException
Constructor- Parameters:
loc
- Source locationcause
- Cause
-
-
Method Details
-
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- Returns:
- the XML string representation of this exception, strictly preserving the original error message
-
asXmlStringStrict
Create an XML String that represents the ExceptionStrictly 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
- Parameters:
t
- Exception to convert to an XML strings
- XML String returned here
-
asXmlStringSingle
Create an XML string that represents the exception- Parameters:
t
- Exception to convert to XML strings
- XML string returned hereformateterFlags
- Formatting flags SeeErrorFormatter
.
-
getParams
Get parameters- Returns:
- Parameter map
-
hashCode
public int hashCode() -
equals
-