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