Class BadSchemaException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.wpilib.util.struct.BadSchemaException
All Implemented Interfaces:
Serializable

public class BadSchemaException extends Exception
Exception thrown when encountering a bad schema.
See Also:
  • Constructor Details

    • BadSchemaException

      public BadSchemaException(String message)
      Constructs a BadSchemaException.
      Parameters:
      message - the detail message.
    • BadSchemaException

      public BadSchemaException(String message, Throwable cause)
      Constructs a BadSchemaException.
      Parameters:
      message - the detail message.
      cause - The cause (which is saved for later retrieval by the Throwable.getCause() method).
    • BadSchemaException

      public BadSchemaException(Throwable cause)
      Constructs a BadSchemaException.
      Parameters:
      cause - The cause (which is saved for later retrieval by the Throwable.getCause() method).
    • BadSchemaException

      public BadSchemaException(String field, String message)
      Constructs a BadSchemaException.
      Parameters:
      field - The bad schema field.
      message - the detail message.
    • BadSchemaException

      public BadSchemaException(String field, String message, Throwable cause)
      Constructs a BadSchemaException.
      Parameters:
      field - The bad schema field.
      message - the detail message.
      cause - The cause (which is saved for later retrieval by the Throwable.getCause() method).
  • Method Details

    • getField

      public String 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

      public String getMessage()
      Overrides:
      getMessage in class Throwable