public class ValidationError
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DECLASSIFY_DATE_NOT_WITHIN_TIME_LIMIT
The declassification date exceeds the maximum allowed timeframe.
|
static int |
INVALID_CLASSIFICATION_AGENCY
The security classification action lacks a classification agency.
|
static int |
INVALID_CLASSIFICATION_AUTHORITY
The security classification action lacks a classification authority.
|
static int |
INVALID_CURRENT_CLASSIFICATION
The security classification action lacks an current classification.
|
static int |
INVALID_DECLASSIFY_DATA
There is no valid declassify on date.
|
static int |
INVALID_DECLASSIFY_DATA_RESTRICTED
There is a "declassify on", but the record is restricted.
|
static int |
INVALID_DOWNGRADE_DATA_RESTRICTED
There is a "downgrade on", but the record is restricted.
|
static int |
INVALID_EXEMPTION_DATA_RESTRICTED
There is an "exemption", but the record is restricted.
|
static int |
INVALID_INITIAL_CLASSIFICATION
The security classification action lacks an initial classification.
|
static int |
NO_DECLASSIFIED_BY
The declassify action lacks a "declassified by".
|
static int |
NO_DECLASSIFIED_ON
The declassify action lacks a declassification date.
|
static int |
NO_DOWNGRADE_CLASSIFICATION
The downgrade action lacks a new current classification.
|
static int |
NO_DOWNGRADE_INSTRUCTIONS
There are no downgrade instructions provided when "downgrade on" is set.
|
static int |
NO_DOWNGRADED_BY
The downgrade action lacks a "downgraded by".
|
static int |
NO_DOWNGRADED_ON
The downgrade action lacks a downgrade date.
|
static int |
NO_REVIEWED_BY
There is a review date, but no reviewer.
|
static int |
NO_UPGRADE_CLASSIFICATION
The upgrade action lacks a new current classification.
|
static int |
NO_UPGRADE_REASONS
The upgrade action lacks reasons for upgrade.
|
static int |
NO_UPGRADED_BY
The upgrade action lacks an "upgraded by".
|
static int |
NO_UPGRADED_ON
The upgrade action lacks an upgrade date.
|
Constructor and Description |
---|
ValidationError()
Creates a
ValidationError object using the default
values for the error code and message. |
ValidationError(int code,
int message)
Creates a
ValidationError object with the specified
error code and message. |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the error code for this
ValidationError object. |
java.lang.String |
getMessage()
Returns the message associated with this
ValidationError object. |
public static final int NO_UPGRADE_CLASSIFICATION
public static final int NO_UPGRADE_REASONS
public static final int NO_UPGRADED_BY
public static final int NO_UPGRADED_ON
public static final int NO_DOWNGRADE_CLASSIFICATION
public static final int NO_DOWNGRADED_BY
public static final int NO_DOWNGRADED_ON
public static final int NO_DECLASSIFIED_BY
public static final int NO_DECLASSIFIED_ON
public static final int INVALID_INITIAL_CLASSIFICATION
public static final int INVALID_CURRENT_CLASSIFICATION
public static final int INVALID_CLASSIFICATION_AUTHORITY
public static final int INVALID_CLASSIFICATION_AGENCY
public static final int INVALID_DECLASSIFY_DATA
public static final int INVALID_DECLASSIFY_DATA_RESTRICTED
public static final int INVALID_DOWNGRADE_DATA_RESTRICTED
public static final int INVALID_EXEMPTION_DATA_RESTRICTED
public static final int NO_DOWNGRADE_INSTRUCTIONS
public static final int NO_REVIEWED_BY
public static final int DECLASSIFY_DATE_NOT_WITHIN_TIME_LIMIT
public ValidationError()
ValidationError
object using the default
values for the error code and message.public ValidationError(int code, int message)
ValidationError
object with the specified
error code and message.code
- An int
value representing the error code.message
- A String
variable containing the message to be displayed
for this object.public final int getCode()
ValidationError
object.int
value representing the error code.public final java.lang.String getMessage()
ValidationError
object.String
containing the message associated with this object.© Copyright IBM Corp. 2003, 2013. All Rights Reserved.