Package org.apache.sis.metadata
Class MetadataVisitorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.sis.util.collection.BackingStoreException
org.apache.sis.metadata.MetadataVisitorException
- All Implemented Interfaces:
Serializable
,LocalizedException
Thrown when a
MetadataVisitor.visit(Class, Object)
method failed.- Since:
- 1.0
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String[]
Path to the element that we failed to process.private static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionMetadataVisitorException
(String[] path, Class<?> type, Exception cause) Constructs a new exception with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.util.InternationalString
Returns an error message giving the location of the failure together with the cause.Returns an error message giving the location of the failure together with the cause.Methods inherited from class org.apache.sis.util.collection.BackingStoreException
unwrapOrRethrow
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.sis.util.LocalizedException
getLocalizedMessage
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
propertyPath
Path to the element that we failed to process.
-
-
Constructor Details
-
MetadataVisitorException
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 theThrowable.getCause()
method.
-
-
Method Details
-
getMessage
Returns an error message giving the location of the failure together with the cause.- Specified by:
getMessage
in interfaceLocalizedException
- Overrides:
getMessage
in classThrowable
- 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 interfaceLocalizedException
- Returns:
- the exception message, or
null
if this exception cannot produce international message.
-