public class MCexception
extends java.lang.RuntimeException
All exceptions thrown by the toolkit are of this unchecked type.
Applications can differentiate between different causes of thrown exceptions by checking the
exceptionNumber
field. The possible values of this field are represented by the static fields
of this class.
If an exception is caused by another exception thrown from outside the toolkit and caught by the toolkit
the Throwable.getCause()
method will return the original exception.
Instances of this class can be used by multiple threads concurrently.
Modifier and Type | Field and Description |
---|---|
static int |
ALREADY_DISPOSED
The exception number for exceptions caused when an operation is attempt on an object that was disposed.
|
static int |
ALREADY_EXISTS
The exception number for exceptions thrown when an object can not be created because another object with
the same content already exist.
|
static int |
ALREADY_INITIALIZED
The exception number of the exception thrown when the toolkit is initialized multiple times with different
initialization file.
|
static int |
ASSOCIATION_ABORTED
The exception number for the exception thrown by a read or write operation if the association is aborted.
|
static int |
ASSOCIATION_REJECTED
The exception number for the exception thrown by the toolkit when an association is rejected by the remote
application.
|
static int |
ASSOCIATION_RELEASED
The exception number for exceptions thrown when an operation is attempted on an association that was
released.
|
static int |
CALLBACK_CANNOT_COMPLY
The exception number for exceptions caused by a value storage or a byte channel.
|
static int |
COMPRESSION_FAILURE
The exception number for exception thrown by the toolkit when a compression/decompression operation fails
|
static int |
CONFIGURATION_ERROR
The exception number for exceptions caused by erroneous configuration or missing configuration files.
|
static int |
CONNECTION_FAILED
The exception number for the exception thrown by the toolkit when a TCP/IP connection attempt fails.
|
static int |
DICOMDIR_ERROR
The exception number for exceptions caused by errors in processing DICOMDIR files.
|
int |
exceptionNumber
This field specifies the exception reason.
|
static int |
FILE_ERROR
The exception number for exceptions caused by a failed file operation.
|
static int |
ILLEGAL_ARGUMENT
The exception number for exceptions caused by invalid or
null method arguments. |
static int |
INCOMPATIBLE_VR
The exception number for exceptions thrown when the value representation of an attribute
is incompatible with the attempted operation.
|
static int |
INVALID_DIMSE_COMMAND
The exception number for exceptions caused by an invalid DIMSE command being specified.
|
static int |
INVALID_DIR_RECORD_TYPE
The exception number for exceptions caused by an invalid DICOMDIR record type.
|
static int |
INVALID_ENCODING
The exception number for exceptions thrown when an attribute's value is not conforming to the constraints
imposed by its value representation.
|
static int |
INVALID_LENGTH_FOR_VR
The exception number for exceptions thrown when the value length of an attribute is incompatible
with its value representation
|
static int |
INVALID_LICENSE
The exception number for the exception thrown by the toolkit when it detects an invalid license.
|
static int |
INVALID_TRANSFER_SYNTAX
The exception number for exceptions caused by a transfer syntax UID that is unknown to the toolkit.
|
static int |
MAX_OPERATIONS_EXCEEDED
The exception number for the exception thrown by the toolkit when sending of a message would cause
the Maximum Number of Operations Invoked that was negotiated to be exceeded.
|
static int |
NEGOTIATION_ABORTED
The exception number for the exception thrown by the toolkit when an association negotiation is interrupted
by an abort.
|
static int |
NETWORK_ERROR
The exception number for exceptions caused by general networking errors.
|
static int |
NETWORK_INACTIVITY_TIMEOUT
The exception number for the exception thrown by the toolkit when a timeout occurs while reading a message
from the network.
|
static int |
NETWORK_SHUTDOWN
The exception number for exceptions thrown when a network connection is dropped.
|
static int |
NOT_FOUND
The exception number for exceptions caused by failed lookup requests.
|
static int |
NOT_INITIALIZED
The exception number for exceptions thrown as a result of the toolkit not being initialized.
|
static int |
OPERATION_NOT_ALLOWED
The exception number for exceptions thrown by the toolkit when a method is called at a time when the action
for that method is not allowed.
|
static int |
OPERATION_NOT_SUPPORTED
The exception number for exceptions thrown by the toolkit when a method is called that is not supported
on the current platform.
|
static int |
REQUIRED_ATTRIBUTE_MISSING
The exception number for exceptions thrown when attempting to stream messages with missing required attributes.
|
static int |
STREAM_ERROR
The exception number for exceptions caused by failed stream operations.
|
static int |
SYSTEM_PROBLEM
The exception number for exceptions caused by unmanaged system resource failures, e.g.
|
static int |
TIMEOUT
The exception number for exceptions caused by a network operation timeout.
|
static int |
UNKNOWN_ERROR
The exception number for exceptions caused by conditions that are outside of the toolkits control.
|
static int |
UNKNOWN_HOST
The exception number for the exception thrown by the toolkit when the remote applications host name
can not be resolved.
|
static int |
UNNACCEPTABLE_SERVICE
The exception number for the exception thrown by the toolkit when attempting to send a message for a service
that was not successfully negotiated.
|
Constructor and Description |
---|
MCexception(int exceptionNumber,
java.lang.String description) |
public static final int UNKNOWN_ERROR
public static final int NOT_INITIALIZED
public static final int ALREADY_INITIALIZED
public static final int ILLEGAL_ARGUMENT
null
method arguments.public static final int CONFIGURATION_ERROR
public static final int ASSOCIATION_REJECTED
public static final int CONNECTION_FAILED
public static final int UNKNOWN_HOST
public static final int NEGOTIATION_ABORTED
public static final int SYSTEM_PROBLEM
public static final int INVALID_DIMSE_COMMAND
public static final int REQUIRED_ATTRIBUTE_MISSING
public static final int CALLBACK_CANNOT_COMPLY
public static final int ALREADY_EXISTS
public static final int COMPRESSION_FAILURE
public static final int OPERATION_NOT_SUPPORTED
public static final int OPERATION_NOT_ALLOWED
public static final int ASSOCIATION_ABORTED
public static final int INVALID_LENGTH_FOR_VR
public static final int NOT_FOUND
public static final int UNNACCEPTABLE_SERVICE
public static final int INVALID_TRANSFER_SYNTAX
public static final int DICOMDIR_ERROR
public static final int INVALID_DIR_RECORD_TYPE
public static final int INCOMPATIBLE_VR
public static final int INVALID_LICENSE
public static final int TIMEOUT
public static final int ASSOCIATION_RELEASED
public static final int NETWORK_SHUTDOWN
public static final int NETWORK_INACTIVITY_TIMEOUT
public static final int MAX_OPERATIONS_EXCEEDED
public static final int INVALID_ENCODING
public static final int FILE_ERROR
public static final int STREAM_ERROR
public static final int NETWORK_ERROR
public static final int ALREADY_DISPOSED
public final int exceptionNumber