Class ErrorCode

java.lang.Object
com.flir.thermalsdk.ErrorCode

public final class ErrorCode extends Object
General error code class.
  • Method Details

    • getCode

      public int getCode()
      Error code as an integer value corresponding to this ErrorCode instance. Note that ec1.getCode() == ec2.getCode() doesn't necessarily mean they're equal. You need to use ec1.equals(ec2) to check that.
      Returns:
      Error code as an integer value. If not stated otherwise, 0 means "no error".
      See Also:
    • getMessage

      @NotNull public @NotNull String getMessage()
      Error message.
      Returns:
      Error message or empty string if there is "no error".
      See Also:
    • isError

      public boolean isError()
      Informs if this ErrorCode is holding any actual error.
      Returns:
      True if error happened, otherwise returns false.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object