Class ExportException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.redwood.scheduler.infrastructure.exception.BaseSchedulerException
-
- com.redwood.scheduler.infrastructure.exception.SchedulerException
-
- com.redwood.scheduler.api.exception.ExportException
-
- All Implemented Interfaces:
ExceptionRelatesToAPIObject,ExceptionData,Serializable
public abstract class ExportException extends SchedulerException implements ExceptionRelatesToAPIObject
Base class for exceptions relating to exporting objects.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExportException(String newErrorCode, String messageFormat, Throwable cause, SchedulerEntity causeObject, String fieldName, Object[] exceptionDataEN, Object[] exceptionData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRelatedField()If the cause of the exception is caused by a specific field then it returns the name of the fieldStringgetRelatedObjectType()What is the object type of the object that caused the exceptionLonggetRelatedUid()What is the UniqueId of the object that caused the exception-
Methods inherited from class com.redwood.scheduler.infrastructure.exception.BaseSchedulerException
bestException, getDefaultMessageFormat, getErrorCode, getExceptionData, getLocalizedMessage, getLocalizedMessage, getMessage, getTranslation, isSystemLoggable, skipException, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
getRelatedObjectType
public final String getRelatedObjectType()
Description copied from interface:ExceptionRelatesToAPIObjectWhat is the object type of the object that caused the exception- Specified by:
getRelatedObjectTypein interfaceExceptionRelatesToAPIObject- Returns:
- the object type of the object that caused the excpetion
-
getRelatedUid
public final Long getRelatedUid()
Description copied from interface:ExceptionRelatesToAPIObjectWhat is the UniqueId of the object that caused the exception- Specified by:
getRelatedUidin interfaceExceptionRelatesToAPIObject- Returns:
- the UniqueId of the object that caused the exception
-
getRelatedField
public final String getRelatedField()
Description copied from interface:ExceptionRelatesToAPIObjectIf the cause of the exception is caused by a specific field then it returns the name of the field- Specified by:
getRelatedFieldin interfaceExceptionRelatesToAPIObject- Returns:
- the name of the field that caused the exception, otherwise it returns null.
-
-