Package edu.wpi.first.util.struct
Class BadSchemaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.wpi.first.util.struct.BadSchemaException
- All Implemented Interfaces:
Serializable
Exception thrown when encountering a bad schema.
- See Also:
-
Constructor Summary
ConstructorDescriptionBadSchemaException
(String message) Constructs a BadSchemaException.BadSchemaException
(String field, String message) Constructs a BadSchemaException.BadSchemaException
(String field, String message, Throwable cause) Constructs a BadSchemaException.BadSchemaException
(String message, Throwable cause) Constructs a BadSchemaException.BadSchemaException
(Throwable cause) Constructs a BadSchemaException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BadSchemaException
Constructs a BadSchemaException.- Parameters:
message
- the detail message.
-
BadSchemaException
Constructs a BadSchemaException.- Parameters:
message
- the detail message.cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
BadSchemaException
Constructs a BadSchemaException.- Parameters:
cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
BadSchemaException
Constructs a BadSchemaException.- Parameters:
field
- The bad schema field.message
- the detail message.
-
BadSchemaException
Constructs a BadSchemaException.- Parameters:
field
- The bad schema field.message
- the detail message.cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
-
Method Details
-
getField
Gets the name of the bad schema field.- Returns:
- The name of the bad schema field, or an empty string if not applicable.
-
getMessage
- Overrides:
getMessage
in classThrowable
-