Package com.google.common.geometry
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classS2Error.Code
-
Constructor Summary
Constructors Constructor Description S2Error()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S2Error.Codecode()Returns the code of this error.voidinit(S2Error.Code code, String format, Object... args)Sets the error code and text description; the description is formatted according to the rules defined inString.format(String, Object...).Stringtext()Returns the text string.
-
-
-
Method Detail
-
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 inString.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.
-
-