ter.API.Search
Class SearchException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--ter.API.Search.SearchException
All Implemented Interfaces:
java.io.Serializable

public class SearchException
extends java.lang.Exception

Title: SearchException

Description: The exceptions that can be throw by a Search. All the type of error that are describe here is non allowed pair of keyword.

Copyright: Copyright (c) 2003

Company: UNICE

Version:
1.0
Author:
Gahide Jérôme - Zerbib Gabriel - Galbois Xavier - Charbit Lucas
See Also:
Serialized Form

Field Summary
static int INTERNAL_ERROR_NULL_POINTER
          type error when the a null pointer occur at the creation of the search result.
static int UNDEFINE_TYPE_SEARCH
          type error occur when the actionTypeSearch is Undefine.
 
Constructor Summary
SearchException(int typeException)
          Construct a new SearchExecption with a specified message, with a specified type of error.
SearchException(java.lang.String message)
          Construct a new SearchExecption with a specified message.
 
Method Summary
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERNAL_ERROR_NULL_POINTER

public static final int INTERNAL_ERROR_NULL_POINTER
type error when the a null pointer occur at the creation of the search result.

See Also:
Constant Field Values

UNDEFINE_TYPE_SEARCH

public static final int UNDEFINE_TYPE_SEARCH
type error occur when the actionTypeSearch is Undefine.

See Also:
Constant Field Values
Constructor Detail

SearchException

public SearchException(java.lang.String message)
Construct a new SearchExecption with a specified message. This Constructor exist in case of the type of error given are not enought

Parameters:
message - the error message.

SearchException

public SearchException(int typeException)
Construct a new SearchExecption with a specified message, with a specified type of error. NB : If a bad typeException is given the comportement is not specified.

Parameters:
typeException - the type of error that had occur.
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable
Returns:
the error message associated to the error. The error message is spefified by the type of the error.