Class ErrorCode

java.lang.Object
io.trino.spi.ErrorCode

public final class ErrorCode extends Object
  • Constructor Details

    • ErrorCode

      public ErrorCode(int code, String name, ErrorType type)
    • ErrorCode

      public ErrorCode(int code, String name, ErrorType type, boolean fatal)
  • Method Details

    • getCode

      public int getCode()
    • getName

      public String getName()
    • getType

      public ErrorType getType()
    • isFatal

      public boolean isFatal()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object