Package com.google.common.geometry
Class S2Error
java.lang.Object
com.google.common.geometry.S2Error
An error code and text string describing the first error encountered during a validation process.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()
Returns the code of this error.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...)
.text()
Returns the text string.
-
Field Details
-
code
-
text
-
-
Constructor Details
-
S2Error
public S2Error()
-
-
Method Details
-
init
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
Returns the code of this error. -
text
Returns the text string.
-