Class XsdImportEcoreSaveException
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
com.appiancorp.suiteapi.type.config.xsd.exceptions.XsdImportEcoreSaveException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class com.appiancorp.suiteapi.type.exceptions.ImportException
_errorCode, _errorCodeArguments
-
Constructor Summary
ConstructorDescriptionXsdImportEcoreSaveException
(ImportDiagnostic[] diagnostics, Exception cause) XsdImportEcoreSaveException
(ImportDiagnostic[] diagnostics, List<ValidationItem> validationErrors) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]
getErrorCodeArguments
(Locale locale) If this exception was caused by validation errors, returns the localized validation codes.Returns the validation errors that caused this exception.Methods inherited from class com.appiancorp.suiteapi.type.exceptions.ImportException
getDiagnostics, getErrorCode, getErrorCodeArguments, hasSameErrorCodeAndArguments, setDiagnostics
Methods inherited from class com.appiancorp.suiteapi.common.exceptions.AppianException
getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
XsdImportEcoreSaveException
-
XsdImportEcoreSaveException
public XsdImportEcoreSaveException(ImportDiagnostic[] diagnostics, List<ValidationItem> validationErrors)
-
-
Method Details
-
getValidationErrors
Returns the validation errors that caused this exception. If the list is empty, it means that this exception was not caused by validation errors, but rather an exception, which can be retrieved usingThrowable.getCause()
. -
getErrorCodeArguments
If this exception was caused by validation errors, returns the localized validation codes. If this exception was caused by another exception, returns the localized message of the cause exception (or just the message, if the cause exception is not anAppianException
/AppianRuntimeException
).- Overrides:
getErrorCodeArguments
in classAppianException
- Parameters:
locale
- arguments' locale- Returns:
- the arguments of the error code tied to this exception
-