Class ErrorValue

  • All Implemented Interfaces:
    java.io.Serializable

    public class ErrorValue
    extends java.lang.Object
    implements java.io.Serializable
    An error result of a evaluated formula.
    Since:
    3.5.0
    Author:
    dennis
    See Also:
    Serialized Form
    • Constructor Detail

      • ErrorValue

        public ErrorValue​(byte code)
      • ErrorValue

        public ErrorValue​(byte code,
                          java.lang.String message)
    • Method Detail

      • valueOf

        public static ErrorValue valueOf​(byte code)
      • getCode

        public byte getCode()
      • setCode

        public void setCode​(byte code)
        Set error code.
        Parameters:
        code - should be one of public byte constant in this class
      • getMessage

        public java.lang.String getMessage()
      • setMessage

        public void setMessage​(java.lang.String message)
      • getErrorString

        public java.lang.String getErrorString()
        Returns:
        might be #NULL!, #NAME?, or #NUM! etc...
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getErrorString

        public static final java.lang.String getErrorString​(int errorCode)