warp exceptions can be caught using the below code
OAException t1 = OAException.wrapperException(localException);
paramOAPageContext.writeDiagnostics(this,"abhishek> "+t1.getExceptions(),6);
Throwable athrowable[] = t1.getExceptions();
if (athrowable != null)
{
paramOAPageContext.writeDiagnostics(this,"abhishek > "+athrowable.length,6);
for(int i = 0; i < athrowable.length; i++)
{
if(athrowable[i] instanceof OAException)
{
paramOAPageContext.writeDiagnostics(this,"abhishek > "+i,6);
paramOAPageContext.writeDiagnostics(this,"abhishek> "+OAException)athrowable[i]).getMessage(),6);
}
}
}
--focus on the method getExceptions()
No comments:
Post a Comment