Class CheckedExceptionImpl

java.lang.Object
com.sun.xml.ws.model.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 Details

    • 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 Details

    • getOwner

      public AbstractSEIModelImpl getOwner()
      Description copied from interface: CheckedException
      Gets the root SEIModel that owns this model.
      Specified by:
      getOwner in interface CheckedException
    • getParent

      public JavaMethod getParent()
      Description copied from interface: CheckedException
      Gets the parent JavaMethod to which this checked exception belongs.
      Specified by:
      getParent in interface CheckedException
    • 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
    • getBond

      public XMLBridge getBond()
    • getDetailType

      public TypeInfo getDetailType()
      Description copied from interface: CheckedException
      Gives the TypeInfo of the detail
      Specified by:
      getDetailType 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)