|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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
This class provides the base implementation of the IPRTFault. this class should be subclassed by all faults
| 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 |
public static final java.lang.String ELEMENT_ERROR
public static final java.lang.String PORTALSOAPFAULT
protected java.lang.String mm_faultActor
protected QName mm_faultCode
protected java.util.Vector mm_faultDetailsVector
protected javax.xml.soap.Detail mm_faultDetails
protected java.lang.String mm_faultString
protected java.lang.Throwable mm_exception
protected java.lang.String mm_typeJavaClassException
protected Level mm_levelError
| Constructor Detail |
public PRTFault()
public PRTFault(QName code,
java.lang.String str,
java.lang.String actor,
java.lang.Object obj,
java.lang.Throwable ex)
code - QName code of the PRTFAULTstr - messageactor - actor of the exceptionobj - object where the exception is generatedex - exception to encapsulated in the PRTFaultpublic PRTFault(javax.xml.soap.SOAPMessage faultmsg)
faultmsg - already formatted SOAPMessage for Fault
public PRTFault(QName code,
java.lang.String str,
java.lang.String actor,
java.lang.Object obj,
java.io.ByteArrayOutputStream streamException)
code - QName code of the PRTFAULTstr - message of the faultactor - actor of the faultobj - object where the exception is generatedstreamException - exception to encapsulated in the PRTFault
public PRTFault(java.lang.Object obj,
java.lang.Exception ex)
obj - object where the exception is generatedex - exception to encapsulated in the PRTFault
public PRTFault(java.lang.Object obj,
java.lang.Throwable ex)
obj - object where the exception is generatedex - exception to encapsulated in the PRTFaultpublic PRTFault(java.lang.Exception ex)
ex - exception to encapsulated in the PRTFaultpublic PRTFault(java.lang.Throwable ex)
ex - exception to encapsulated in the PRTFault| Method Detail |
public static void initializePRTFaultContextServerSide(ISOAPMessageContext context,
javax.xml.soap.SOAPEnvelope soapEnvelopeMsgContext)
context - the context of the messagesoapEnvelopeMsgContext - the SOAP Enevelope where to insert the messagepublic static void releasePRTFaultContextServerSide()
public static void initializePRTFaultContextClientSide(ISOAPMessageContext context)
context - the context of the messagepublic static void releasePRTFaultContextClientSide()
public void initializeFromPRTFault(PRTFault rootexception)
rootexception - the based PRTFaultpublic java.lang.Object throwException()
public static PRTFault makePrtFault(java.lang.Object obj,
java.lang.Throwable e)
objobject - where the exception is generatede - exception to encapsulated in the PRTFaultpublic void printStackTrace()
SOAPServiceExceptionprintStackTrace in class SOAPServiceExceptionpublic void printStackTrace(java.io.PrintWriter s)
SOAPServiceExceptionThrowable and its backtrace to the specified
print writer.printStackTrace in class SOAPServiceExceptioncom.sapportals.portal.prt.service.soap.exception.SOAPServiceExceptions - PrintWriter to use for outputpublic void printStackTrace(java.io.PrintStream s)
SOAPServiceExceptionThrowable and its backtrace to the
specified print stream.printStackTrace in class SOAPServiceExceptioncom.sapportals.portal.prt.runtime.PortalRuntimeExceptions - PrintWriter to use for outputpublic java.lang.String getFaultActor()
public QName getFaultCode()
public javax.xml.soap.Detail getFaultDetails()
public java.lang.String getFaultString()
public Level getLevelError()
public java.lang.String toString()
toString in class java.lang.Throwable
public static boolean writeSchema(ITypes type)
throws java.lang.Exception
type - java.lang.Exception - public java.lang.Throwable getCauseException()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getTypeJavaClassException()
public java.util.Vector getFaultDetailsVector()
public void setFaultActor(java.lang.String string)
string - the actorpublic void setFaultCode(QName name)
name - the qnamepublic void setFaultDetails(javax.xml.soap.Detail detail)
detail - the detail of the exceptionpublic void setFaultDetailsVector(java.util.Vector vector)
vector - details of the exceptionpublic void setFaultString(java.lang.String string)
string - the messagepublic void setLevelError(Level level)
level - level of the fault
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||