Class S2Error

java.lang.Object
com.google.common.geometry.S2Error

@GwtCompatible public class S2Error extends Object
An error code and text string describing the first error encountered during a validation process.
  • Field Details

  • Constructor Details

    • S2Error

      public S2Error()
  • Method Details

    • init

      public void init(S2Error.Code code, String format, 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 String text()
      Returns the text string.