Class BaseSchedulerException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- com.redwood.scheduler.infrastructure.exception.BaseSchedulerException
 
 
 
- 
- All Implemented Interfaces:
- ExceptionData,- Serializable
 - Direct Known Subclasses:
- SchedulerException
 
 public abstract class BaseSchedulerException extends Exception implements ExceptionData, Serializable The BaseSchedulerException is the implementation of theSchedulerExceptionexcept that it does not define the versions, so is safe to use with exceptions before logging is enabled. For all other cases SchedulerException should be used.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbestException()Is this exception the best exception for the purposes of the UI? Exceptions implementing this _MUST_ make sure that they display all or more information than their causes.StringgetDefaultMessageFormat()Get the default (US English) message format.StringgetErrorCode()Get the JCS error code of this exception.Object[]getExceptionData()Get the data from the exception for formatting.StringgetLocalizedMessage()StringgetLocalizedMessage(Locale locale)StringgetMessage()StringgetTranslation()Get a translation for the exception.booleanisSystemLoggable()Should this exception be logged to the system log, or only to the trace file.booleanskipException()Should this exception be skipped for the purposes of showing an exception dump to the user.StringtoString()- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
- 
 
- 
- 
- 
Method Detail- 
getExceptionDatapublic Object[] getExceptionData() Description copied from interface:ExceptionDataGet the data from the exception for formatting.- Specified by:
- getExceptionDatain interface- ExceptionData
- Returns:
- the exception data.
 
 - 
skipExceptionpublic boolean skipException() Description copied from interface:ExceptionDataShould this exception be skipped for the purposes of showing an exception dump to the user.- Specified by:
- skipExceptionin interface- ExceptionData
- Returns:
- true if so, false otherwise.
 
 - 
bestExceptionpublic boolean bestException() Description copied from interface:ExceptionDataIs this exception the best exception for the purposes of the UI? Exceptions implementing this _MUST_ make sure that they display all or more information than their causes.- Specified by:
- bestExceptionin interface- ExceptionData
- Returns:
- true if so, false otherwise.
 
 - 
getDefaultMessageFormatpublic String getDefaultMessageFormat() Description copied from interface:ExceptionDataGet the default (US English) message format.- Specified by:
- getDefaultMessageFormatin interface- ExceptionData
- Returns:
- the message format
 
 - 
isSystemLoggablepublic boolean isSystemLoggable() Description copied from interface:ExceptionDataShould this exception be logged to the system log, or only to the trace file.- Specified by:
- isSystemLoggablein interface- ExceptionData
- Returns:
- whether this should be logged to the system log, or only to the trace file
 
 - 
getLocalizedMessagepublic String getLocalizedMessage() - Overrides:
- getLocalizedMessagein class- Throwable
 
 - 
getMessagepublic String getMessage() - Overrides:
- getMessagein class- Throwable
 
 - 
getTranslationpublic String getTranslation() Description copied from interface:ExceptionDataGet a translation for the exception.- Specified by:
- getTranslationin interface- ExceptionData
- Returns:
- a translatable description of this exception.
 
 - 
getErrorCodepublic String getErrorCode() Description copied from interface:ExceptionDataGet the JCS error code of this exception.- Specified by:
- getErrorCodein interface- ExceptionData
- Returns:
- the JCS error code, without the leading "JCS-"
 
 
- 
 
-