com.sapportals.portal.prt.service.soap.exception
Class PRTFault

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.sapportals.portal.prt.runtime.PortalRuntimeException
                          |
                          +--com.sapportals.portal.prt.service.PortalServiceException
                                |
                                +--com.sapportals.portal.prt.service.ServiceException
                                      |
                                      +--com.sapportals.portal.prt.service.soap.exception.SOAPServiceException
                                            |
                                            +--com.sapportals.portal.prt.service.soap.exception.PRTFault
All Implemented Interfaces:
IPRTFault, java.io.Serializable
Direct Known Subclasses:
PRTFaultDataEnconding, PRTFaultEnvelopeVersion, PRTFaultFromSOAPMessage, PRTFaultInternalError, PRTFaultSecurity, PRTFaultSerializator

public abstract class PRTFault
extends SOAPServiceException
implements IPRTFault

This class provides the base implementation of the IPRTFault. this class should be subclassed by all faults

See Also:
Serialized Form

Field Summary
static java.lang.String ELEMENT_ERROR
           
protected  java.lang.Throwable mm_exception
           
protected  java.lang.String mm_faultActor
           
protected  QName mm_faultCode
           
protected  javax.xml.soap.Detail mm_faultDetails
           
protected  java.util.Vector mm_faultDetailsVector
           
protected  java.lang.String mm_faultString
           
protected  Level mm_levelError
           
protected  java.lang.String mm_typeJavaClassException
           
static java.lang.String PORTALSOAPFAULT
           
 
Fields inherited from class com.sapportals.portal.prt.service.soap.exception.SOAPServiceException
mm_msgFault
 
Constructor Summary
PRTFault()
          default constructor
PRTFault(java.lang.Exception ex)
          Constructor
PRTFault(java.lang.Object obj, java.lang.Exception ex)
          Constructor
PRTFault(java.lang.Object obj, java.lang.Throwable ex)
          Constructor
PRTFault(QName code, java.lang.String str, java.lang.String actor, java.lang.Object obj, java.io.ByteArrayOutputStream streamException)
          Constructor
PRTFault(QName code, java.lang.String str, java.lang.String actor, java.lang.Object obj, java.lang.Throwable ex)
          Constructor
PRTFault(javax.xml.soap.SOAPMessage faultmsg)
          Constructor
PRTFault(java.lang.Throwable ex)
          Constructor
 
Method Summary
 java.lang.Throwable getCauseException()
          get Cause Exception
 java.lang.String getFaultActor()
          Get Mm_faultActor
 QName getFaultCode()
          Get Mm_faultCode
 javax.xml.soap.Detail getFaultDetails()
          Get Mm_faultDetails
 java.util.Vector getFaultDetailsVector()
          Get detail of the fault
 java.lang.String getFaultString()
          Get Mm_faultString
 Level getLevelError()
          Get Mm_levelError
 java.lang.String getMessage()
           
 java.lang.String getTypeJavaClassException()
          Get Java Class Excpetion
 void initializeFromPRTFault(PRTFault rootexception)
          initialize the cuurent PRTFault from an existing PRTFault
static void initializePRTFaultContextClientSide(ISOAPMessageContext context)
          initialize the context fot PRTFault on client side
static void initializePRTFaultContextServerSide(ISOAPMessageContext context, javax.xml.soap.SOAPEnvelope soapEnvelopeMsgContext)
          initialize the context fot PRTFault on server side
static PRTFault makePrtFault(java.lang.Object obj, java.lang.Throwable e)
          Create a PRTFault
 void printStackTrace()
          prints this exception
 void printStackTrace(java.io.PrintStream s)
          Prints this Throwable and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this Throwable and its backtrace to the specified print writer.
static void releasePRTFaultContextClientSide()
          initialize the context fot PRTFault on client side
static void releasePRTFaultContextServerSide()
          c
 void setFaultActor(java.lang.String string)
          set the actor of the fault
 void setFaultCode(QName name)
          set the code name (Qname) of the exception
 void setFaultDetails(javax.xml.soap.Detail detail)
          set Fault details
 void setFaultDetailsVector(java.util.Vector vector)
          set the fault details
 void setFaultString(java.lang.String string)
          set the message of the fault
 void setLevelError(Level level)
          set the level of the fault
 java.lang.Object throwException()
          Throws the exception
 java.lang.String toString()
           
static boolean writeSchema(ITypes type)
           
 
Methods inherited from class com.sapportals.portal.prt.service.soap.exception.SOAPServiceException
getMsgFault, getOriginalException
 
Methods inherited from class com.sapportals.portal.prt.runtime.PortalRuntimeException
getCause, getException, setCause, setException, toHTML, toText
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sapportals.portal.prt.service.soap.exception.IPRTFault
updateFaultMessage
 

Field Detail

ELEMENT_ERROR

public static final java.lang.String ELEMENT_ERROR

PORTALSOAPFAULT

public static final java.lang.String PORTALSOAPFAULT

mm_faultActor

protected java.lang.String mm_faultActor

mm_faultCode

protected QName mm_faultCode

mm_faultDetailsVector

protected java.util.Vector mm_faultDetailsVector

mm_faultDetails

protected javax.xml.soap.Detail mm_faultDetails

mm_faultString

protected java.lang.String mm_faultString

mm_exception

protected java.lang.Throwable mm_exception

mm_typeJavaClassException

protected java.lang.String mm_typeJavaClassException

mm_levelError

protected Level mm_levelError
Constructor Detail

PRTFault

public PRTFault()
default constructor

PRTFault

public PRTFault(QName code,
                java.lang.String str,
                java.lang.String actor,
                java.lang.Object obj,
                java.lang.Throwable ex)
Constructor
Parameters:
code - QName code of the PRTFAULT
str - message
actor - actor of the exception
obj - object where the exception is generated
ex - exception to encapsulated in the PRTFault

PRTFault

public PRTFault(javax.xml.soap.SOAPMessage faultmsg)
Constructor
Parameters:
faultmsg - already formatted SOAPMessage for Fault

PRTFault

public PRTFault(QName code,
                java.lang.String str,
                java.lang.String actor,
                java.lang.Object obj,
                java.io.ByteArrayOutputStream streamException)
Constructor
Parameters:
code - QName code of the PRTFAULT
str - message of the fault
actor - actor of the fault
obj - object where the exception is generated
streamException - exception to encapsulated in the PRTFault

PRTFault

public PRTFault(java.lang.Object obj,
                java.lang.Exception ex)
Constructor
Parameters:
obj - object where the exception is generated
ex - exception to encapsulated in the PRTFault

PRTFault

public PRTFault(java.lang.Object obj,
                java.lang.Throwable ex)
Constructor
Parameters:
obj - object where the exception is generated
ex - exception to encapsulated in the PRTFault

PRTFault

public PRTFault(java.lang.Exception ex)
Constructor
Parameters:
ex - exception to encapsulated in the PRTFault

PRTFault

public PRTFault(java.lang.Throwable ex)
Constructor
Parameters:
ex - exception to encapsulated in the PRTFault
Method Detail

initializePRTFaultContextServerSide

public static void initializePRTFaultContextServerSide(ISOAPMessageContext context,
                                                       javax.xml.soap.SOAPEnvelope soapEnvelopeMsgContext)
initialize the context fot PRTFault on server side
Parameters:
context - the context of the message
soapEnvelopeMsgContext - the SOAP Enevelope where to insert the message

releasePRTFaultContextServerSide

public static void releasePRTFaultContextServerSide()
c

initializePRTFaultContextClientSide

public static void initializePRTFaultContextClientSide(ISOAPMessageContext context)
initialize the context fot PRTFault on client side
Parameters:
context - the context of the message

releasePRTFaultContextClientSide

public static void releasePRTFaultContextClientSide()
initialize the context fot PRTFault on client side

initializeFromPRTFault

public void initializeFromPRTFault(PRTFault rootexception)
initialize the cuurent PRTFault from an existing PRTFault
Parameters:
rootexception - the based PRTFault

throwException

public java.lang.Object throwException()
Throws the exception
Returns:
the exception to throw

makePrtFault

public static PRTFault makePrtFault(java.lang.Object obj,
                                    java.lang.Throwable e)
Create a PRTFault
Parameters:
objobject - where the exception is generated
e - exception to encapsulated in the PRTFault
Returns:
 

printStackTrace

public void printStackTrace()
Description copied from class: SOAPServiceException
prints this exception
Overrides:
printStackTrace in class SOAPServiceException

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Description copied from class: SOAPServiceException
Prints this Throwable and its backtrace to the specified print writer.
Overrides:
printStackTrace in class SOAPServiceException
Following copied from class: com.sapportals.portal.prt.service.soap.exception.SOAPServiceException
Parameters:
s - PrintWriter to use for output

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Description copied from class: SOAPServiceException
Prints this Throwable and its backtrace to the specified print stream.
Overrides:
printStackTrace in class SOAPServiceException
Following copied from class: com.sapportals.portal.prt.runtime.PortalRuntimeException
Parameters:
s - PrintWriter to use for output

getFaultActor

public java.lang.String getFaultActor()
Get Mm_faultActor
Returns:
java.lang.String

getFaultCode

public QName getFaultCode()
Get Mm_faultCode
Returns:
com.sapportals.portal.prt.service.soap.QName

getFaultDetails

public javax.xml.soap.Detail getFaultDetails()
Get Mm_faultDetails
Returns:
java.util.Vector

getFaultString

public java.lang.String getFaultString()
Get Mm_faultString
Returns:
java.lang.String

getLevelError

public Level getLevelError()
Get Mm_levelError
Returns:
java.lang.String

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

writeSchema

public static boolean writeSchema(ITypes type)
                           throws java.lang.Exception
Parameters:
type -  
Returns:
 
Throws:
java.lang.Exception -  

getCauseException

public java.lang.Throwable getCauseException()
get Cause Exception
Returns:
the exception

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getTypeJavaClassException

public java.lang.String getTypeJavaClassException()
Get Java Class Excpetion
Returns:
the Class of the exception

getFaultDetailsVector

public java.util.Vector getFaultDetailsVector()
Get detail of the fault
Returns:
details of the exception

setFaultActor

public void setFaultActor(java.lang.String string)
set the actor of the fault
Parameters:
string - the actor

setFaultCode

public void setFaultCode(QName name)
set the code name (Qname) of the exception
Parameters:
name - the qname

setFaultDetails

public void setFaultDetails(javax.xml.soap.Detail detail)
set Fault details
Parameters:
detail - the detail of the exception

setFaultDetailsVector

public void setFaultDetailsVector(java.util.Vector vector)
set the fault details
Parameters:
vector - details of the exception

setFaultString

public void setFaultString(java.lang.String string)
set the message of the fault
Parameters:
string - the message

setLevelError

public void setLevelError(Level level)
set the level of the fault
Parameters:
level - level of the fault