Class ErrorImpl

  • All Implemented Interfaces:
    Error

    public class ErrorImpl
    extends Object
    implements Error
    • Constructor Detail

      • ErrorImpl

        public ErrorImpl​(int code,
                         String state,
                         String message)
        An error that occurred while executing a statement.
        Parameters:
        code - The error code.
        state - The error state.
        message - The error message.
    • Method Detail

      • getCode

        public int getCode()
        Specified by:
        getCode in interface Error
        Returns:
        The error code.
      • getState

        public String getState()
        Specified by:
        getState in interface Error
        Returns:
        The error state.
      • getMessage

        public String getMessage()
        Specified by:
        getMessage in interface Error
        Returns:
        The error message.
      • isHandled

        public boolean isHandled()
        Description copied from interface: Error
        Checks whether this error has already been handled.
        Specified by:
        isHandled in interface Error
        Returns:
        true true if this error has already be handled or false if it should flow via the default error handler.
      • setHandled

        public void setHandled​(boolean handled)
        Description copied from interface: Error
        Sets whether this error has already been handled.
        Specified by:
        setHandled in interface Error
        Parameters:
        handled - true if this error has already be handled or false if it should flow via the default error handler.