public class ImportException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
CHECKSUM_MISMATCH
Indicates that there was a checksum mismatch.
|
static int |
COMPRESSION
Indicates that the compression is not supported.
|
static String |
FILE_NOT_VALID_TEXT
Text to indicate that the file, after scanning is not valid.
|
static int |
FILE_ON_TAPE
Indicates that a library is missing.
|
static int |
MISSING_LIBRARY
Indicates that a library is missing.
|
static String |
MISSING_LIBRARY_TEXT
Text to indicate a library is missing.
|
static int |
NO_SPACE
Indicates that there is no space left.
|
static int |
NOT_VALID
Indicates that the file is not valid.
|
static int |
UNKNOWN_FORMAT
Indicates that the file format is not supported.
|
static String |
UNKNOWN_FORMAT_TEXT
Text to indicate that the file format is not supported.
|
Constructor and Description |
---|
ImportException(String message)
Constructs a new exception with the specified detail message.
|
ImportException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
ImportException(Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
Modifier and Type | Method and Description |
---|---|
static String |
getImportFailureMessage(Throwable t)
Returns the message corresponding to the error thrown while importing the
files.
|
int |
getStatus()
Returns one of the constant defined by this class.
|
String |
toString()
Overridden to return the cause of the problem.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final String FILE_NOT_VALID_TEXT
public static final String UNKNOWN_FORMAT_TEXT
public static final String MISSING_LIBRARY_TEXT
public static int COMPRESSION
public static int MISSING_LIBRARY
public static int FILE_ON_TAPE
public static int NO_SPACE
public static int CHECKSUM_MISMATCH
public static int NOT_VALID
public static int UNKNOWN_FORMAT
public ImportException(String message)
message
- Short explanation of the problem.public ImportException(Throwable cause)
cause
- The exception that caused this one to be risen.public static String getImportFailureMessage(Throwable t)
t
- The exception to handle.public int getStatus()
public String toString()
toString
in class Throwable
Throwable.toString()
Version: 5.2.1-ice35-b15
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.