Package com.google.common.geometry
Class S2Error
- java.lang.Object
-
- com.google.common.geometry.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 inString.format(String, Object...)
.java.lang.String
text()
Returns the text string.
-
-
-
Field Detail
-
code
private S2Error.Code code
-
text
private java.lang.String text
-
-
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 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 java.lang.String text()
Returns the text string.
-
-