Class FileParameterInvalidTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.redwood.scheduler.infrastructure.exception.SchedulerRuntimeException
-
- com.redwood.scheduler.api.exception.FileParameterValueRuntimeException
-
- com.redwood.scheduler.api.exception.FileParameterInvalidTypeException
-
- All Implemented Interfaces:
ExceptionRelatesToAPIObject
,ExceptionData
,Serializable
@Generated("build/redwood/jbs/generated-exceptions/Exceptions.java.tmpl") public class FileParameterInvalidTypeException extends FileParameterValueRuntimeException implements ExceptionRelatesToAPIObject
The type specifier is invalid for the file reference.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FileParameterInvalidTypeException(String newErrorCode, String messageFormat, Throwable cause, SchedulerEntity causeObject, String fieldName, Object[] exceptionDataEN, Object[] exceptionData)
FileParameterInvalidTypeException(Throwable cause, String invalidValue, String invalidType, String allowedValues, SchedulerEntity causeObject, String fieldName)
The type specifier is invalid for the file reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRelatedField()
If the cause of the exception is caused by a specific field then it returns the name of the fieldString
getRelatedObjectType()
What is the object type of the object that caused the exceptionLong
getRelatedUid()
What is the UniqueId of the object that caused the exception-
Methods inherited from class com.redwood.scheduler.infrastructure.exception.SchedulerRuntimeException
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
-
-
-
-
Constructor Detail
-
FileParameterInvalidTypeException
protected FileParameterInvalidTypeException(String newErrorCode, String messageFormat, Throwable cause, SchedulerEntity causeObject, String fieldName, Object[] exceptionDataEN, Object[] exceptionData)
-
FileParameterInvalidTypeException
public FileParameterInvalidTypeException(Throwable cause, String invalidValue, String invalidType, String allowedValues, SchedulerEntity causeObject, String fieldName)
The type specifier is invalid for the file reference.- Parameters:
cause
- The originating exception, null if this is the originating exceptioninvalidValue
- The value that is incorrect.invalidType
- The type that is incorrect.allowedValues
- A comma separated list of values that the user can use.causeObject
- the object that caused the exceptionfieldName
- Name of the field that caused the exception, null if not applicable.
-
-
Method Detail
-
getRelatedObjectType
public final String getRelatedObjectType()
Description copied from interface:ExceptionRelatesToAPIObject
What is the object type of the object that caused the exception- Specified by:
getRelatedObjectType
in interfaceExceptionRelatesToAPIObject
- Returns:
- the object type of the object that caused the excpetion
-
getRelatedUid
public final Long getRelatedUid()
Description copied from interface:ExceptionRelatesToAPIObject
What is the UniqueId of the object that caused the exception- Specified by:
getRelatedUid
in interfaceExceptionRelatesToAPIObject
- Returns:
- the UniqueId of the object that caused the exception
-
getRelatedField
public final String getRelatedField()
Description copied from interface:ExceptionRelatesToAPIObject
If the cause of the exception is caused by a specific field then it returns the name of the field- Specified by:
getRelatedField
in interfaceExceptionRelatesToAPIObject
- Returns:
- the name of the field that caused the exception, otherwise it returns null.
-
-