Class ImportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.appiancorp.suiteapi.common.exceptions.AppianException
com.appiancorp.exceptions.AppianException
com.appiancorp.suiteapi.type.exceptions.ImportException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidXsdException
,UnsupportedXsdException
,XsdImportEcoreSaveException
Thrown when a new type could not be imported.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionImportException
(ImportDiagnostic[] diagnostics_, ErrorCode errorCode_) Constructs a new exception with the specified error code and import diagnostics.ImportException
(ImportDiagnostic[] diagnostics_, ErrorCode errorCode_, Object[] errorCodeArguments_) Constructs a new exception with the specified error code and import diagnostics.ImportException
(ImportDiagnostic[] diagnostics_, ErrorCode errorCode_, Object[] errorCodeArguments_, Throwable cause_) Constructs a new exception with the specified error code and import diagnostics. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the diagnostics that were generated during the attempted import.Gets the error code associated with this exception.protected Object[]
Gets the arguments that must be used to render this exception's message representation.boolean
Checks whether the specifiedImportException
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.Methods inherited from class com.appiancorp.suiteapi.common.exceptions.AppianException
getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
_errorCode
-
_errorCodeArguments
-
-
Constructor Details
-
ImportException
Constructs a new exception with the specified error code and import diagnostics. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable)- Parameters:
diagnostics_
- the diagnostics that were generated during the attempted importerrorCode_
- theErrorCode
associated with the exception
-
ImportException
public ImportException(ImportDiagnostic[] diagnostics_, ErrorCode errorCode_, Object[] errorCodeArguments_) Constructs a new exception with the specified error code and import diagnostics. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable)- Parameters:
diagnostics_
- the diagnostics that were generated during the attempted importerrorCode_
- theErrorCode
associated with the exceptionerrorCodeArguments_
- the arguments that must be used to render this exception's message representation
-
ImportException
public ImportException(ImportDiagnostic[] diagnostics_, ErrorCode errorCode_, Object[] errorCodeArguments_, Throwable cause_) Constructs a new exception with the specified error code and import diagnostics.- Parameters:
diagnostics_
- the diagnostics that were generated during the attempted importerrorCode_
- theErrorCode
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). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
getErrorCode
Gets the error code associated with this exception.- Overrides:
getErrorCode
in classAppianException
- See Also:
-
getErrorCodeArguments
Gets the arguments that must be used to render this exception's message representation.- Overrides:
getErrorCodeArguments
in classAppianException
- Returns:
- the arguments of the error code tied to this exception
- See Also:
-
hasSameErrorCodeAndArguments
Checks whether the specifiedImportException
has the same error code and error code arguments as this object.- Parameters:
e
- anImportException
instance- Returns:
- true if the same, false otherwise
-
getDiagnostics
Retrieves the diagnostics that were generated during the attempted import.- Returns:
- the diagnostics
-
setDiagnostics
Sets the diagnostics that are associated with the ImportException.- Parameters:
diagnostics_
- the diagnostics that were generated during the attempted import
-