public class ImportException extends AppianException
Modifier and Type | Field and Description |
---|---|
protected ErrorCode |
_errorCode |
protected java.lang.Object[] |
_errorCodeArguments |
Constructor and Description |
---|
ImportException(ImportDiagnostic[] diagnostics_,
ErrorCode errorCode_)
Constructs a new exception with the specified error code and import diagnostics.
|
ImportException(ImportDiagnostic[] diagnostics_,
ErrorCode errorCode_,
java.lang.Object[] errorCodeArguments_)
Constructs a new exception with the specified error code and import diagnostics.
|
ImportException(ImportDiagnostic[] diagnostics_,
ErrorCode errorCode_,
java.lang.Object[] errorCodeArguments_,
java.lang.Throwable cause_)
Constructs a new exception with the specified error code and import diagnostics.
|
Modifier and Type | Method and Description |
---|---|
ImportDiagnostic[] |
getDiagnostics()
Retrieves the diagnostics that were generated during the attempted import.
|
ErrorCode |
getErrorCode()
Gets the error code associated with this exception.
|
protected java.lang.Object[] |
getErrorCodeArguments()
Gets the arguments that must be used to render this exception's message
representation.
|
boolean |
hasSameErrorCodeAndArguments(ImportException e)
Checks whether the specified
ImportException has the same error code
and error code arguments as this object. |
void |
setDiagnostics(ImportDiagnostic[] diagnostics_)
Sets the diagnostics that are associated with the ImportException.
|
getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage, toString
protected ErrorCode _errorCode
protected java.lang.Object[] _errorCodeArguments
public ImportException(ImportDiagnostic[] diagnostics_, ErrorCode errorCode_)
diagnostics_
- the diagnostics that were generated during the attempted
importerrorCode_
- the ErrorCode
associated with the exceptionpublic ImportException(ImportDiagnostic[] diagnostics_, ErrorCode errorCode_, java.lang.Object[] errorCodeArguments_)
diagnostics_
- the diagnostics that were generated during the attempted
importerrorCode_
- the ErrorCode
associated with the exceptionerrorCodeArguments_
- the arguments that must be used to render this
exception's message representationpublic ImportException(ImportDiagnostic[] diagnostics_, ErrorCode errorCode_, java.lang.Object[] errorCodeArguments_, java.lang.Throwable cause_)
diagnostics_
- the diagnostics that were generated during the attempted
importerrorCode_
- the ErrorCode
associated with the exceptionerrorCodeArguments_
- the arguments that must be used to render this
exception's message representationcause_
- the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null
value is permitted,
and indicates that the cause is nonexistent or unknown.)public ErrorCode getErrorCode()
getErrorCode
in class AppianException
ErrorCode.GENERIC_ERROR
protected java.lang.Object[] getErrorCodeArguments()
getErrorCodeArguments
in class AppianException
ErrorCode.GENERIC_ERROR
public boolean hasSameErrorCodeAndArguments(ImportException e)
ImportException
has the same error code
and error code arguments as this object.e
- an ImportException
instancepublic ImportDiagnostic[] getDiagnostics()
public void setDiagnostics(ImportDiagnostic[] diagnostics_)
diagnostics_
- the diagnostics that were generated during the attempted
importCopyright © 2003-2024 Appian Corporation. All Rights Reserved.