org.itracker.services.exceptions
Class IssueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.itracker.services.exceptions.IssueException
All Implemented Interfaces:
Serializable

public class IssueException
extends Exception

This class is used to represent a variety of execptions that can occur while processing issues.

See Also:
Serialized Form

Field Summary
static String TYPE_CF_INVALID_LIST_OPTION
           
static String TYPE_CF_PARSE_DATE
           
static String TYPE_CF_PARSE_NUM
           
static String TYPE_CF_REQ_FIELD
           
static String TYPE_UNKNOWN
           
 
Constructor Summary
IssueException()
          Creates a new IssueException of unknown type.
IssueException(String message)
          Creates a new IssueException of unknown type with a default message.
IssueException(String message, String type)
          Creates a new IssueException of specified type with a default message.
IssueException(String message, String type, Throwable cause)
          Creates a new IssueException of specified type with a default message.
IssueException(String message, Throwable cause)
          Creates a new IssueException of unknown type with a default message.
 
Method Summary
 String getType()
          Returns the exception type which can be used to format a localized error message.
 void setType(String value)
          Sets the issue exception type.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_UNKNOWN

public static final String TYPE_UNKNOWN
See Also:
Constant Field Values

TYPE_CF_INVALID_LIST_OPTION

public static final String TYPE_CF_INVALID_LIST_OPTION
See Also:
Constant Field Values

TYPE_CF_PARSE_NUM

public static final String TYPE_CF_PARSE_NUM
See Also:
Constant Field Values

TYPE_CF_PARSE_DATE

public static final String TYPE_CF_PARSE_DATE
See Also:
Constant Field Values

TYPE_CF_REQ_FIELD

public static final String TYPE_CF_REQ_FIELD
See Also:
Constant Field Values
Constructor Detail

IssueException

public IssueException()
Creates a new IssueException of unknown type.


IssueException

public IssueException(String message)
Creates a new IssueException of unknown type with a default message.

Parameters:
message - the exception error message

IssueException

public IssueException(String message,
                      Throwable cause)
Creates a new IssueException of unknown type with a default message.

Parameters:
message - the exception error message

IssueException

public IssueException(String message,
                      String type)
Creates a new IssueException of specified type with a default message.

Parameters:
message - the exception error message
type - the exception type represented by a resource bundle key

IssueException

public IssueException(String message,
                      String type,
                      Throwable cause)
Creates a new IssueException of specified type with a default message.

Parameters:
message - the exception error message
type - the exception type represented by a resource bundle key
Method Detail

getType

public String getType()
Returns the exception type which can be used to format a localized error message.

Returns:
String resource bundle key representing the exception type.

setType

public void setType(String value)
Sets the issue exception type.

Parameters:
value - a String code representing the type of issue exception that occured.


Copyright © 2002-2012 itracker. All Rights Reserved.