Package com.amazon.ion.facet
Class UnsupportedFacetException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.UnsupportedOperationException
-
- com.amazon.ion.facet.UnsupportedFacetException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnsupportedFacetException extends java.lang.UnsupportedOperationException
Indicates a failed request to find a required facet of some subject.
-
-
Constructor Summary
Constructors Constructor Description UnsupportedFacetException(java.lang.Class<?> facetType, java.lang.Object subject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getFacetType()
Gets the facet type that's not supported by the subject instance.java.lang.String
getMessage()
java.lang.Object
getSubject()
Gets the subject instance that didn't support the requested facet.
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getFacetType
public java.lang.Class<?> getFacetType()
Gets the facet type that's not supported by the subject instance.- Returns:
- may be null.
-
getSubject
public java.lang.Object getSubject()
Gets the subject instance that didn't support the requested facet.- Returns:
- may be null.
-
-