Class 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.
    See Also:
    Facets.assumeFacet(Class, Faceted), Serialized Form
    • 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.
      • 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
    • Constructor Detail

      • UnsupportedFacetException

        public UnsupportedFacetException​(java.lang.Class<?> facetType,
                                         java.lang.Object subject)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.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.