TaskBean API
0.5

glogic.jthin.base
Class WSCodeRuntimeException

java.lang.Object
  extended byWSRuntimeException
      extended byglogic.jthin.base.WSCodeRuntimeException
Direct Known Subclasses:
WServiceAccessException

public abstract class WSCodeRuntimeException
extends WSRuntimeException

Speical subclass to allow a type value to be passed in and returned by hessian rpc calls. This is a workaround due to a combination of hessian limitations and java security restriction. If the subclass exception wishes to use getType then it should delimit the constructor with "&&" and override the getDescription and getType to make them public. If the subclass does not wish to use getType and getDescription() then it should just use getMessage()

Author:
Sam Taha
See Also:
Serialized Form

Constructor Summary
WSCodeRuntimeException(java.lang.String msgBlob)
          Hessian does not fully serialize exceptions.
 
Method Summary
 int getCode()
          Get code out of string blob.
 java.lang.String getDescription()
          Get string message out of string blob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSCodeRuntimeException

public WSCodeRuntimeException(java.lang.String msgBlob)
Hessian does not fully serialize exceptions. So as a workaround for exceptions that need to specify a code this class can be subclassed. A msgBlob example" "55&&The meessage" You can then use getCode() and getDescription() to get the delimited fields.

Parameters:
msgBlob - contains a code and message string delimited by "&&"
Method Detail

getCode

public int getCode()
Get code out of string blob.


getDescription

public java.lang.String getDescription()
Get string message out of string blob


TaskBean API
0.5

Copyright © Grand Logic, Inc. All Rights Reserved.