org.ow2.jonas.ee.jdbc
Class XAExceptionUtils
java.lang.Object
org.ow2.jonas.ee.jdbc.XAExceptionUtils
public class XAExceptionUtils
- extends Object
This helper class is here to ease XAException creation
when Exception chaining is wanted.
- Author:
- Guillaume Sauthier
Method Summary |
static void |
throwXAException(int errorCode,
Throwable cause)
Construct and throw a new XAException with the given errorCode
and initialized with the given cause. |
static void |
throwXAException(String message,
Throwable cause)
Construct and throw a new XAException with the given message
and initialized with the given cause. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XAExceptionUtils
public XAExceptionUtils()
throwXAException
public static void throwXAException(int errorCode,
Throwable cause)
throws XAException
- Construct and throw a new XAException with the given errorCode
and initialized with the given cause.
- Parameters:
errorCode
- XA codecause
- cause of this Exception
- Throws:
XAException
- Always throw a new XAException
throwXAException
public static void throwXAException(String message,
Throwable cause)
throws XAException
- Construct and throw a new XAException with the given message
and initialized with the given cause.
- Parameters:
message
- Exception messagecause
- cause of this Exception
- Throws:
XAException
- Always throw a new XAException
Copyright © 2010 OW2 Consortium. All Rights Reserved.