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

public class StreamBaseException extends Exception implements com.streambase.sb.util.LocatedItem
The base class of all StreamBase non-runtime exceptions.
See Also:
  • Constructor Details

    • StreamBaseException

      public StreamBaseException(String message)
      Constructor
      Parameters:
      message - Exception message
    • StreamBaseException

      public StreamBaseException(String message, Throwable cause)
      Constructor
      Parameters:
      message - Exception message
      cause - Exception cause
    • StreamBaseException

      public StreamBaseException(Throwable cause)
      Constructor
      Parameters:
      cause - Exception cause
    • StreamBaseException

      public StreamBaseException(com.streambase.sb.util.LocatedItem loc, String msg)
      Constructor
      Parameters:
      loc - Item location
      msg - Exception message
    • StreamBaseException

      public StreamBaseException(com.streambase.sb.util.LocatedItem loc, String msg, Throwable cause)
      Constructor
      Parameters:
      loc - Item location
      msg - Exception message
      cause - Exception cause
    • StreamBaseException

      public StreamBaseException(com.streambase.sb.util.LocatedItem loc, Throwable cause)
      Constructor
      Parameters:
      loc - Source location
      cause - Cause
  • Method Details

    • 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 Exception

      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

      Parameters:
      t - Exception to convert to an XML string
      s - 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 string
      s - XML string returned here
      formateterFlags - Formatting flags See ErrorFormatter.
    • getParams

      public Map<String,String> getParams()
      Get parameters
      Returns:
      Parameter map
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object