railo.runtime.util
Interface Excepton

All Known Implementing Classes:
ExceptonImpl

public interface Excepton

class to get exceptions of different types


Field Summary
static int TYPE_ABORT
          Field TYPE_ABORT
static int TYPE_ABORT_EXP
          Field TYPE_ABORT_EXP
static int TYPE_APPLICATION_EXP
          Field TYPE_APPLICATION_EXP
static int TYPE_CASTER_EXP
          Field TYPE_CASTER_EXP
static int TYPE_CUSTOM_TYPE_EXP
          Field TYPE_CUSTOM_TYPE_EXP
static int TYPE_DATABASE_EXP
          Field TYPE_DATABASE_EXP
static int TYPE_EXPRESSION_EXP
          Field TYPE_EXPRESSION_EXP
static int TYPE_FUNCTION_EXP
          Field TYPE_FUNCTION_EXP
static int TYPE_LOCK_EXP
          Field TYPE_LOCK_EXP
static int TYPE_MISSING_INCLUDE_EXP
          Field TYPE_MISSING_INCLUDE_EXP
static int TYPE_NATIVE_EXP
          Field TYPE_NATIVE_EXP
static int TYPE_SECURITY_EXP
          Field TYPE_SECURITY_EXP
static int TYPE_TEMPLATE_EXP
          Field TYPE_TEMPLATE_EXP
static int TYPE_XML_EXP
          Field TYPE_XML_EXP
 
Method Summary
 PageException createAbort()
          create exception "Abort"
 PageException createAbortException(String showError)
          create exception "AbortException"
 PageException createApplicationException(String message)
          create exception "ApplicationException"
 PageException createApplicationException(String message, String detail)
          create exception "ApplicationException"
 PageException createCasterException(String message)
          create exception "CasterException"
 PageException createCustomTypeException(String message, String detail, String errorcode, String customType)
          create exception "CustomTypeException"
 PageException createDatabaseException(String message)
          create exception "DatabaseException"
 PageException createDatabaseException(String message, SQL sql)
          create exception "DatabaseException"
 PageException createDatabaseException(String message, String detail)
          create exception "DatabaseException"
 PageException createExpressionException(String message)
          create exception "ExpressionException"
 PageException createExpressionException(String message, String detail)
          create exception "ExpressionException"
 PageException createFunctionException(PageContext pc, String functionName, String badArgumentPosition, String badArgumentName, String message)
          create exception "FunctionException"
 PageException createLockException(String operation, String name, String message)
          create exception "LockException"
 PageException createMissingIncludeException(PageSource ps)
          create exception "LockException"
 PageException createNativeException(Throwable t)
          create exception "NativeException"
 PageException createSecurityException(String message)
          create exception "SecurityException"
 PageException createSecurityException(String message, String detail)
          create exception "SecurityException"
 PageException createTemplateException(String message)
          create exception "TemplateException"
 PageException createTemplateException(String message, String detail)
          create exception "TemplateException"
 PageException createXMLException(String message)
          create exception "XMLException"
 PageException createXMLException(String message, String detail)
          create exception "XMLException"
 boolean isOfType(int type, Throwable t)
          check if exception is of given type
 

Field Detail

TYPE_ABORT

static final int TYPE_ABORT
Field TYPE_ABORT

See Also:
Constant Field Values

TYPE_ABORT_EXP

static final int TYPE_ABORT_EXP
Field TYPE_ABORT_EXP

See Also:
Constant Field Values

TYPE_APPLICATION_EXP

static final int TYPE_APPLICATION_EXP
Field TYPE_APPLICATION_EXP

See Also:
Constant Field Values

TYPE_CASTER_EXP

static final int TYPE_CASTER_EXP
Field TYPE_CASTER_EXP

See Also:
Constant Field Values

TYPE_CUSTOM_TYPE_EXP

static final int TYPE_CUSTOM_TYPE_EXP
Field TYPE_CUSTOM_TYPE_EXP

See Also:
Constant Field Values

TYPE_DATABASE_EXP

static final int TYPE_DATABASE_EXP
Field TYPE_DATABASE_EXP

See Also:
Constant Field Values

TYPE_EXPRESSION_EXP

static final int TYPE_EXPRESSION_EXP
Field TYPE_EXPRESSION_EXP

See Also:
Constant Field Values

TYPE_FUNCTION_EXP

static final int TYPE_FUNCTION_EXP
Field TYPE_FUNCTION_EXP

See Also:
Constant Field Values

TYPE_LOCK_EXP

static final int TYPE_LOCK_EXP
Field TYPE_LOCK_EXP

See Also:
Constant Field Values

TYPE_MISSING_INCLUDE_EXP

static final int TYPE_MISSING_INCLUDE_EXP
Field TYPE_MISSING_INCLUDE_EXP

See Also:
Constant Field Values

TYPE_NATIVE_EXP

static final int TYPE_NATIVE_EXP
Field TYPE_NATIVE_EXP

See Also:
Constant Field Values

TYPE_SECURITY_EXP

static final int TYPE_SECURITY_EXP
Field TYPE_SECURITY_EXP

See Also:
Constant Field Values

TYPE_TEMPLATE_EXP

static final int TYPE_TEMPLATE_EXP
Field TYPE_TEMPLATE_EXP

See Also:
Constant Field Values

TYPE_XML_EXP

static final int TYPE_XML_EXP
Field TYPE_XML_EXP

See Also:
Constant Field Values
Method Detail

createAbort

PageException createAbort()
create exception "Abort"

Returns:
Abort

createAbortException

PageException createAbortException(String showError)
create exception "AbortException"

Parameters:
showError -
Returns:
AbortException

createApplicationException

PageException createApplicationException(String message)
create exception "ApplicationException"

Parameters:
message -
Returns:
ApplicationException

createApplicationException

PageException createApplicationException(String message,
                                         String detail)
create exception "ApplicationException"

Parameters:
message -
detail -
Returns:
ApplicationException

createCasterException

PageException createCasterException(String message)
create exception "CasterException"

Parameters:
message -
Returns:
CasterException

createCustomTypeException

PageException createCustomTypeException(String message,
                                        String detail,
                                        String errorcode,
                                        String customType)
create exception "CustomTypeException"

Parameters:
message -
detail -
errorcode -
customType -
Returns:
CustomTypeException

createDatabaseException

PageException createDatabaseException(String message)
create exception "DatabaseException"

Parameters:
message -
Returns:
DatabaseException

createDatabaseException

PageException createDatabaseException(String message,
                                      String detail)
create exception "DatabaseException"

Parameters:
message -
detail -
Returns:
DatabaseException

createDatabaseException

PageException createDatabaseException(String message,
                                      SQL sql)
create exception "DatabaseException"

Parameters:
message -
sql -
Returns:
DatabaseException

createExpressionException

PageException createExpressionException(String message)
create exception "ExpressionException"

Parameters:
message -
Returns:
ExpressionException

createExpressionException

PageException createExpressionException(String message,
                                        String detail)
create exception "ExpressionException"

Parameters:
message -
detail -
Returns:
ExpressionException

createFunctionException

PageException createFunctionException(PageContext pc,
                                      String functionName,
                                      String badArgumentPosition,
                                      String badArgumentName,
                                      String message)
create exception "FunctionException"

Parameters:
pc -
functionName -
badArgumentPosition -
badArgumentName -
message -
Returns:
FunctionException

createLockException

PageException createLockException(String operation,
                                  String name,
                                  String message)
create exception "LockException"

Parameters:
operation -
name -
message -
Returns:
LockException

createMissingIncludeException

PageException createMissingIncludeException(PageSource ps)
create exception "LockException"

Parameters:
ps -
Returns:
LockException

createNativeException

PageException createNativeException(Throwable t)
create exception "NativeException"

Parameters:
t -
Returns:
NativeException

createSecurityException

PageException createSecurityException(String message)
create exception "SecurityException"

Parameters:
message -
Returns:
SecurityException

createSecurityException

PageException createSecurityException(String message,
                                      String detail)
create exception "SecurityException"

Parameters:
message -
detail -
Returns:
SecurityException

createTemplateException

PageException createTemplateException(String message)
create exception "TemplateException"

Parameters:
message -
Returns:
TemplateException

createTemplateException

PageException createTemplateException(String message,
                                      String detail)
create exception "TemplateException"

Parameters:
message -
detail -
Returns:
TemplateException

createXMLException

PageException createXMLException(String message)
create exception "XMLException"

Parameters:
message -
Returns:
XMLException

createXMLException

PageException createXMLException(String message,
                                 String detail)
create exception "XMLException"

Parameters:
message -
detail -
Returns:
XMLException

isOfType

boolean isOfType(int type,
                 Throwable t)
check if exception is of given type

Parameters:
type - type to check
t - exception to check
Returns:
is of type


Copyright © 2012 Railo