Class S2Error


  • @GwtCompatible
    public class S2Error
    extends java.lang.Object
    An error code and text string describing the first error encountered during a validation process.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  S2Error.Code  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private S2Error.Code code  
      private java.lang.String text  
    • Constructor Summary

      Constructors 
      Constructor Description
      S2Error()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      S2Error.Code code()
      Returns the code of this error.
      void init​(S2Error.Code code, java.lang.String format, java.lang.Object... args)
      Sets the error code and text description; the description is formatted according to the rules defined in String.format(String, Object...).
      java.lang.String text()
      Returns the text string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • text

        private java.lang.String text
    • Constructor Detail

      • S2Error

        public S2Error()
    • Method Detail

      • init

        public void init​(S2Error.Code code,
                         java.lang.String format,
                         java.lang.Object... args)
        Sets the error code and text description; the description is formatted according to the rules defined in String.format(String, Object...). This method may be called more than once, so that various layers may surround
      • code

        public S2Error.Code code()
        Returns the code of this error.
      • text

        public java.lang.String text()
        Returns the text string.