Class CheckedExceptionImpl

  • All Implemented Interfaces:
    CheckedException

    public final class CheckedExceptionImpl
    extends Object
    implements CheckedException
    CheckedException class. Holds the exception class - class that has public constructor public WrapperException()String message, FaultBean){} and method public FaultBean getFaultInfo();
    Author:
    Vivek Pandey
    • Constructor Detail

      • CheckedExceptionImpl

        public CheckedExceptionImpl​(JavaMethodImpl jm,
                                    Class exceptionClass,
                                    TypeInfo detail,
                                    ExceptionType exceptionType)
        Parameters:
        jm - JavaMethodImpl that throws this exception
        exceptionClass - User defined or WSDL exception class that extends java.lang.Exception.
        detail - detail or exception bean's TypeReference
        exceptionType - either ExceptionType.UserDefined or
    • Method Detail

      • getExceptionClass

        public Class getExceptionClass()
        Description copied from interface: CheckedException
        The returned exception class would be userdefined or WSDL exception class.
        Specified by:
        getExceptionClass in interface CheckedException
        Returns:
        the Class for this object
      • getDetailBean

        public Class getDetailBean()
        Description copied from interface: CheckedException
        The detail bean is serialized inside the detail entry in the SOAP message. This must be known to the JAXBContext inorder to get marshalled/unmarshalled.
        Specified by:
        getDetailBean in interface CheckedException
        Returns:
        the detail bean
      • getBridge

        public org.glassfish.jaxb.runtime.api.Bridge getBridge()
        Deprecated.
        Description copied from interface: CheckedException
        Gives the Bridge associated with the detail
        Specified by:
        getBridge in interface CheckedException
      • getExceptionType

        public ExceptionType getExceptionType()
        Description copied from interface: CheckedException
        Tells whether the exception class is a userdefined or a WSDL exception. A WSDL exception class follows the pattern defined in JSR 224. According to that a WSDL exception class must have: public WrapperException()String message, FaultBean){} and accessor method public FaultBean getFaultInfo();
        Specified by:
        getExceptionType in interface CheckedException
      • getMessageName

        public String getMessageName()
        Description copied from interface: CheckedException
        Gives the wsdl:portType/wsdl:operation/wsdl:fault@message value - that is the wsdl:message referenced by wsdl:fault
        Specified by:
        getMessageName in interface CheckedException
      • setMessageName

        public void setMessageName​(String messageName)
      • getFaultAction

        public String getFaultAction()
      • setFaultAction

        public void setFaultAction​(String faultAction)
      • getDefaultFaultAction

        public String getDefaultFaultAction()
      • getFaultInfoGetter

        public Method getFaultInfoGetter()
      • setFaultInfoGetter

        public void setFaultInfoGetter​(Method faultInfoGetter)