Package lucee.runtime.util
Interface Excepton
public interface Excepton
class to get exceptions of different types
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
FieldTYPE_ABORT
static final int
FieldTYPE_ABORT_EXP
static final int
FieldTYPE_APPLICATION_EXP
static final int
FieldTYPE_CASTER_EXP
static final int
FieldTYPE_CUSTOM_TYPE_EXP
static final int
FieldTYPE_DATABASE_EXP
static final int
FieldTYPE_EXPRESSION_EXP
static final int
FieldTYPE_FUNCTION_EXP
static final int
FieldTYPE_LOCK_EXP
static final int
FieldTYPE_MISSING_INCLUDE_EXP
static final int
FieldTYPE_NATIVE_EXP
static final int
FieldTYPE_SECURITY_EXP
static final int
FieldTYPE_TEMPLATE_EXP
static final int
FieldTYPE_XML_EXP
-
Method Summary
Modifier and TypeMethodDescriptioncreate exception "Abort"createAbortException
(String showError) create exception "AbortException"createApplicationException
(String message) create exception "ApplicationException"createApplicationException
(String message, String detail) create exception "ApplicationException"createCasterException
(Object obj, Class clazz) createCasterException
(Object obj, String className) createCasterException
(String message) create exception "CasterException"createCustomTypeException
(String message, String detail, String errorcode, String customType) Deprecated.createCustomTypeException
(String message, String detail, String errorcode, String customType, String extendedInfo) createDatabaseException
(String message) create exception "DatabaseException"createDatabaseException
(String message, String detail) create exception "DatabaseException"createDatabaseException
(String message, SQL sql) create exception "DatabaseException"createExpressionException
(String message) create exception "ExpressionException"createExpressionException
(String message, String detail) create exception "ExpressionException"createFunctionException
(PageContext pc, String functionName, int min, int max, int actual) createFunctionException
(PageContext pc, String functionName, int badArgumentPosition, String badArgumentName, String message, String detail) create exception "FunctionException"createFunctionException
(PageContext pc, String functionName, String badArgumentPosition, String badArgumentName, String message) Deprecated.use insteadcreateFunctionException(PageContext pc,String functionName, int badArgumentPosition, String badArgumentName, String message, String detail))
createLockException
(String operation, String name, String message) create exception "LockException"create exception "LockException"create exception "NativeException"createSecurityException
(String message) create exception "SecurityException"createSecurityException
(String message, String detail) create exception "SecurityException"createTemplateException
(String message) create exception "TemplateException"createTemplateException
(String message, String detail) create exception "TemplateException"createXMLException
(String message) create exception "XMLException"createXMLException
(String message, String detail) create exception "XMLException"boolean
check if exception is of given typesimilarKeyMessage
(Collection.Key[] keys, String keySearched, String keyLabel, String keyLabels, String in, boolean listAll)
-
Field Details
-
TYPE_ABORT
static final int TYPE_ABORTFieldTYPE_ABORT
- See Also:
-
TYPE_ABORT_EXP
static final int TYPE_ABORT_EXPFieldTYPE_ABORT_EXP
- See Also:
-
TYPE_APPLICATION_EXP
static final int TYPE_APPLICATION_EXPFieldTYPE_APPLICATION_EXP
- See Also:
-
TYPE_CASTER_EXP
static final int TYPE_CASTER_EXPFieldTYPE_CASTER_EXP
- See Also:
-
TYPE_CUSTOM_TYPE_EXP
static final int TYPE_CUSTOM_TYPE_EXPFieldTYPE_CUSTOM_TYPE_EXP
- See Also:
-
TYPE_DATABASE_EXP
static final int TYPE_DATABASE_EXPFieldTYPE_DATABASE_EXP
- See Also:
-
TYPE_EXPRESSION_EXP
static final int TYPE_EXPRESSION_EXPFieldTYPE_EXPRESSION_EXP
- See Also:
-
TYPE_FUNCTION_EXP
static final int TYPE_FUNCTION_EXPFieldTYPE_FUNCTION_EXP
- See Also:
-
TYPE_LOCK_EXP
static final int TYPE_LOCK_EXPFieldTYPE_LOCK_EXP
- See Also:
-
TYPE_MISSING_INCLUDE_EXP
static final int TYPE_MISSING_INCLUDE_EXPFieldTYPE_MISSING_INCLUDE_EXP
- See Also:
-
TYPE_NATIVE_EXP
static final int TYPE_NATIVE_EXPFieldTYPE_NATIVE_EXP
- See Also:
-
TYPE_SECURITY_EXP
static final int TYPE_SECURITY_EXPFieldTYPE_SECURITY_EXP
- See Also:
-
TYPE_TEMPLATE_EXP
static final int TYPE_TEMPLATE_EXPFieldTYPE_TEMPLATE_EXP
- See Also:
-
TYPE_XML_EXP
static final int TYPE_XML_EXPFieldTYPE_XML_EXP
- See Also:
-
-
Method Details
-
createAbort
PageException createAbort()create exception "Abort"- Returns:
- Abort
-
createAbortException
create exception "AbortException"- Parameters:
showError
- show error- Returns:
- AbortException
-
createApplicationException
create exception "ApplicationException"- Parameters:
message
- Message- Returns:
- ApplicationException
-
createApplicationException
create exception "ApplicationException"- Parameters:
message
- Messagedetail
- Detail- Returns:
- ApplicationException
-
createCasterException
create exception "CasterException"- Parameters:
message
- Message- Returns:
- CasterException
-
createCasterException
-
createCasterException
-
createCustomTypeException
@Deprecated PageException createCustomTypeException(String message, String detail, String errorcode, String customType) Deprecated.use insteadcreateCustomTypeException(String message, String detail, String errorcode, String customType, String extendedInfo);
create exception "CustomTypeException"- Parameters:
message
- Messagedetail
- Detailerrorcode
- Error CodecustomType
- Custom Type- Returns:
- CustomTypeException
-
createCustomTypeException
-
createDatabaseException
create exception "DatabaseException"- Parameters:
message
- Message- Returns:
- DatabaseException
-
createDatabaseException
create exception "DatabaseException"- Parameters:
message
- Messagedetail
- Detail- Returns:
- DatabaseException
-
createDatabaseException
create exception "DatabaseException"- Parameters:
message
- Messagesql
- SQL- Returns:
- DatabaseException
-
createExpressionException
create exception "ExpressionException"- Parameters:
message
- Message- Returns:
- ExpressionException
-
createExpressionException
create exception "ExpressionException"- Parameters:
message
- Messagedetail
- Detail- Returns:
- ExpressionException
-
createFunctionException
@Deprecated PageException createFunctionException(PageContext pc, String functionName, String badArgumentPosition, String badArgumentName, String message) Deprecated.use insteadcreateFunctionException(PageContext pc,String functionName, int badArgumentPosition, String badArgumentName, String message, String detail))
create exception "FunctionException"- Parameters:
pc
- Page ContextfunctionName
- Function NamebadArgumentPosition
- Bad Argument PositionbadArgumentName
- Bad Argument Namemessage
- Message- Returns:
- FunctionException
-
createFunctionException
PageException createFunctionException(PageContext pc, String functionName, int badArgumentPosition, String badArgumentName, String message, String detail) create exception "FunctionException"- Parameters:
pc
- Page ContextfunctionName
- Function NamebadArgumentPosition
- Bad Argument PositionbadArgumentName
- Bad Argument Namemessage
- Messagedetail
- Detail- Returns:
- FunctionException
-
createLockException
create exception "LockException"- Parameters:
operation
- operationname
- namemessage
- Message- Returns:
- LockException
-
createMissingIncludeException
create exception "LockException"- Parameters:
ps
- Page Source- Returns:
- LockException
-
createNativeException
create exception "NativeException"- Parameters:
t
- Throwable- Returns:
- NativeException
-
createSecurityException
create exception "SecurityException"- Parameters:
message
- Message- Returns:
- SecurityException
-
createSecurityException
create exception "SecurityException"- Parameters:
message
- Messagedetail
- Detail- Returns:
- SecurityException
-
createTemplateException
create exception "TemplateException"- Parameters:
message
- Message- Returns:
- TemplateException
-
createTemplateException
create exception "TemplateException"- Parameters:
message
- Messagedetail
- Detail- Returns:
- TemplateException
-
createXMLException
create exception "XMLException"- Parameters:
message
- Message- Returns:
- XMLException
-
createXMLException
create exception "XMLException"- Parameters:
message
- Messagedetail
- Detail- Returns:
- XMLException
-
isOfType
check if exception is of given type- Parameters:
type
- type to checkt
- exception to check- Returns:
- is of type
-
similarKeyMessage
-
createPageRuntimeException
-
createFunctionException
PageException createFunctionException(PageContext pc, String functionName, int min, int max, int actual) -
toIOException
-
createCustomTypeException(String message, String detail, String errorcode, String customType, String extendedInfo);