Class ErrorCode


  • public class ErrorCode
    extends Object
    This class represents an Exasol error code (e.g: E-EX-1). Each tag has a type (eg: E), a tag (e.g: EX) and an index (e.g: 1).
    • Constructor Detail

      • ErrorCode

        public ErrorCode​(ErrorCode.Type type,
                         String tag,
                         int index)
        Create a new instance of ErrorCode.
        Parameters:
        type - error type
        tag - error tag
        index - error index
    • Method Detail

      • getType

        public ErrorCode.Type getType()
        Get the type.
        Returns:
        type
      • getTag

        public String getTag()
        Get the tag.
        Returns:
        tag
      • getIndex

        public int getIndex()
        Get the index.
        Returns:
        index
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object