Top Description Fields Constructors Methods
com.amazon.ion.facet

public Class UnsupportedFacetException

extends UnsupportedOperationException
Class Inheritance

Indicates a failed request to find a required facet of some subject.
See Also
Facets#assumeFacet(Class, Faceted)

Field Summary

Modifier and TypeField and Description
private Class<?>
private Object
private static final long

Constructor Summary

AccessConstructor and Description
public
UnsupportedFacetException(Class<?> facetType, Object subject)

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

may be null.
getFacetType
()

Gets the facet type that's not supported by the subject instance.

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

public Object

Returns:

may be null.
getSubject
()

Gets the subject instance that didn't support the requested facet.

Field Detail

myFacetTypeback to summary
private Class<?> myFacetType
mySubjectback to summary
private Object mySubject
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.UnsupportedOperationException.serialVersionUID.

Constructor Detail

UnsupportedFacetExceptionback to summary
public UnsupportedFacetException(Class<?> facetType, Object subject)

Method Detail

getFacetTypeback to summary
public Class<?> getFacetType()

Gets the facet type that's not supported by the subject instance.

Returns:Class<?>

may be null.

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getSubjectback to summary
public Object getSubject()

Gets the subject instance that didn't support the requested facet.

Returns:Object

may be null.