public class WvcmException extends Exception
Modifier and Type | Class and Description |
---|---|
static class |
WvcmException.ReasonCode
The reason code for a WvcmException.
|
Constructor and Description |
---|
WvcmException(String message,
Resource resource,
WvcmException.ReasonCode reasonCode)
Constructs a WvcmException.
|
WvcmException(String message,
Resource resource,
WvcmException.ReasonCode reasonCode,
Throwable cause)
Constructs a WvcmException.
|
WvcmException(String message,
Resource resource,
WvcmException.ReasonCode reasonCode,
Throwable[] nestedExceptions)
Constructs a WvcmException.
|
WvcmException(String message,
Resource resource,
WvcmException.ReasonCode reasonCode,
Throwable cause,
Throwable[] nestedExceptions)
Constructs a WvcmException.
|
WvcmException(String message,
WvcmException.ReasonCode reasonCode)
Constructs a WvcmException.
|
Modifier and Type | Method and Description |
---|---|
Throwable[] |
getNestedExceptions()
Get any nested exceptions that further explain the cause of the error.
|
WvcmException.ReasonCode |
getReasonCode()
Get the reason code that describes the nature of the error.
|
Resource |
getResource()
Get the resource causing the exception.
|
public WvcmException(String message, Resource resource, WvcmException.ReasonCode reasonCode)
message
- the detail message for the exception.resource
- the resource causing the exception.reasonCode
- the reason for the exception.public WvcmException(String message, Resource resource, WvcmException.ReasonCode reasonCode, Throwable cause)
message
- the detail message for the exception.resource
- the resource causing the exception.reasonCode
- the reason for the exception.cause
- the exception that caused this exception.public WvcmException(String message, Resource resource, WvcmException.ReasonCode reasonCode, Throwable[] nestedExceptions)
message
- the detail message for the exception.resource
- the resource causing the exception.reasonCode
- the reason for the exception.nestedExceptions
- any nested exception.public WvcmException(String message, Resource resource, WvcmException.ReasonCode reasonCode, Throwable cause, Throwable[] nestedExceptions)
message
- the detail message for the exception.resource
- the resource causing the exception.reasonCode
- the reason for the exception.cause
- the exception that caused this exception.nestedExceptions
- any nested exception.public WvcmException(String message, WvcmException.ReasonCode reasonCode)
message
- the detail message for the exception.reasonCode
- the reason for the exception.public Throwable[] getNestedExceptions()
public WvcmException.ReasonCode getReasonCode()
public Resource getResource()
Copyright © IBM 2018. All rights reserved.