public class NamingExceptionHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javax.naming.NamingException |
create(java.lang.String message,
java.lang.Exception originalException)
Build a new exception with the given exception by wrapping it in a NamingException
|
static javax.naming.NamingException |
create(java.lang.String message,
java.lang.Throwable t)
Build a new exception with the given error by wrapping it in a NamingException
|
public static javax.naming.NamingException create(java.lang.String message, java.lang.Exception originalException)
message
- text error for the exceptionoriginalException
- original exceptionpublic static javax.naming.NamingException create(java.lang.String message, java.lang.Throwable t)
message
- text error for the exceptiont
- original error