Class MetadataVisitorException

All Implemented Interfaces:
Serializable, LocalizedException

final class MetadataVisitorException extends BackingStoreException implements LocalizedException
Thrown when a MetadataVisitor.visit(Class, Object) method failed.
Since:
1.0
Version:
1.0
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • propertyPath

      private final String[] propertyPath
      Path to the element that we failed to process.
  • Constructor Details

    • MetadataVisitorException

      public MetadataVisitorException(String[] path, Class<?> type, Exception cause)
      Constructs a new exception with the specified cause.
      Parameters:
      path - path to the element that we failed to process.
      type - the class that was visited when the exception occurred.
      cause - the cause, saved for later retrieval by the Throwable.getCause() method.
  • Method Details

    • getMessage

      public String getMessage()
      Returns an error message giving the location of the failure together with the cause.
      Specified by:
      getMessage in interface LocalizedException
      Overrides:
      getMessage in class Throwable
      Returns:
      the exception message in the JVM default locale.
    • getInternationalMessage

      public org.opengis.util.InternationalString getInternationalMessage()
      Returns an error message giving the location of the failure together with the cause.
      Specified by:
      getInternationalMessage in interface LocalizedException
      Returns:
      the exception message, or null if this exception cannot produce international message.