Class TeiidRuntimeException

    • Field Detail

      • CAUSED_BY_STRING

        public static final String CAUSED_BY_STRING
    • Constructor Detail

      • TeiidRuntimeException

        public TeiidRuntimeException()
        Construct a default instance of this class.
      • TeiidRuntimeException

        public TeiidRuntimeException​(String message)
        Construct an instance with the specified error message. If the message is actually a key, the actual message will be retrieved from a resource bundle using the key, the specified parameters will be substituted for placeholders within the message, and the code will be set to the key.
        Parameters:
        message - The error message or a resource bundle key
      • TeiidRuntimeException

        public TeiidRuntimeException​(Throwable e)
        Construct an instance with a linked exception specified. If the exception is a TeiidException or a TeoodRuntimeException, then the code will be set to the exception's code.
        Parameters:
        e - An exception to chain to this exception
      • TeiidRuntimeException

        public TeiidRuntimeException​(BundleUtil.Event event,
                                     Throwable e,
                                     String message)
        Construct an instance with the linked exception, error code, and error message specified. If the specified exception is a TeiidException or a MetaMatrixRuntimeException, the code will be set to the exception's code.
        Parameters:
        e - The exception to chain to this exception
        event - The error code
        message - The error message
    • Method Detail

      • getCode

        public String getCode()
        Get the error code.
        Returns:
        The error code