Class StreamBaseException

    • Constructor Detail

      • 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​(LocatedItem loc,
                                   String msg)
        Constructor
        Parameters:
        loc - Item location
        msg - Exception message
      • StreamBaseException

        public StreamBaseException​(LocatedItem loc,
                                   String msg,
                                   Throwable cause)
        Constructor
        Parameters:
        loc - Item location
        msg - Exception message
        cause - Exception cause
      • StreamBaseException

        public StreamBaseException​(LocatedItem loc,
                                   Throwable cause)
        Constructor
        Parameters:
        loc - Source location
        cause - 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 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