public class MapiException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
MAPI_E_ACCESS_DENIED
Access denied.
|
static int |
MAPI_E_AMBIG_RECIP
A recipient matched more than one of the recipient descriptor structures and MAPI_DIALOG was not set.
|
static int |
MAPI_E_AMBIGUOUS_RECIPIENT
A recipient matched more than one of the recipient descriptor structures and MAPI_DIALOG was not set.
|
static int |
MAPI_E_ATTACHMENT_NOT_FOUND
The specified attachment was not found.
|
static int |
MAPI_E_ATTACHMENT_OPEN_FAILURE
The specified attachment could not be opened.
|
static int |
MAPI_E_BAD_RECIPTYPE
The type of a recipient was not MAPI_TO, MAPI_CC, or MAPI_BCC.
|
static int |
MAPI_E_FAILURE
One or more unspecified errors occurred.
|
static int |
MAPI_E_INSUFFICIENT_MEMORY
There was insufficient memory to proceed.
|
static int |
MAPI_E_INVALID_RECIPS
One or more recipients were invalid or did not resolve to any address.
|
static int |
MAPI_E_LOGIN_FAILURE
There was no default logon, and the user failed to log on successfully when the logon dialog box was displayed.
|
static int |
MAPI_E_LOGON_FAILURE
There was no default logon, and the user failed to log on successfully when the logon dialog box was displayed.
|
static int |
MAPI_E_NOT_SUPPORTED
Not supported.
|
static int |
MAPI_E_TEXT_TOO_LARGE
The text in the message was too large.
|
static int |
MAPI_E_TOO_MANY_FILES
There were too many file attachments.
|
static int |
MAPI_E_TOO_MANY_RECIPIENTS
There were too many recipients.
|
static int |
MAPI_E_UNKNOWN_RECIPIENT
A recipient did not appear in the address list.
|
static int |
MAPI_E_USER_ABORT
The user canceled one of the dialog boxes.
|
static int |
SUCCESS
The call succeeded and the message was sent.
|
Constructor and Description |
---|
MapiException(int errorCode)
Creates new instance of the
MapiException . |
MapiException(java.lang.String message)
Creates new instance of the
MapiException . |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the message error code.
|
static java.lang.String |
getMessage(int errorCode)
Returns the message that corresponds to the specified error code.
|
public static final int SUCCESS
public static final int MAPI_E_USER_ABORT
public static final int MAPI_E_FAILURE
public static final int MAPI_E_LOGON_FAILURE
public static final int MAPI_E_LOGIN_FAILURE
public static final int MAPI_E_INSUFFICIENT_MEMORY
public static final int MAPI_E_ACCESS_DENIED
public static final int MAPI_E_TOO_MANY_FILES
public static final int MAPI_E_TOO_MANY_RECIPIENTS
public static final int MAPI_E_ATTACHMENT_NOT_FOUND
public static final int MAPI_E_ATTACHMENT_OPEN_FAILURE
public static final int MAPI_E_UNKNOWN_RECIPIENT
public static final int MAPI_E_BAD_RECIPTYPE
public static final int MAPI_E_TEXT_TOO_LARGE
public static final int MAPI_E_AMBIGUOUS_RECIPIENT
public static final int MAPI_E_AMBIG_RECIP
public static final int MAPI_E_INVALID_RECIPS
public static final int MAPI_E_NOT_SUPPORTED
public MapiException(int errorCode)
MapiException
.errorCode
- The message error code.public MapiException(java.lang.String message)
MapiException
. The message error code will be set to -1.message
- The message text.public int getErrorCode()
public static java.lang.String getMessage(int errorCode)
errorCode
- The message error code. errorCode
parameter wasn't found, null will be returned.