org.gcube.opensearch.opensearchlibrary.query
Class NonExistentParameterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.gcube.opensearch.opensearchlibrary.query.NonExistentParameterException
All Implemented Interfaces:
java.io.Serializable

public class NonExistentParameterException
extends java.lang.Exception

An exception that is thrown when a query parameter is not present

Author:
gerasimos.farantatos
See Also:
Serialized Form

Constructor Summary
NonExistentParameterException()
          Creates a new instance
NonExistentParameterException(java.lang.String message)
          Creates a new instance
NonExistentParameterException(java.lang.String message, java.lang.String name)
          Creates a new instance
NonExistentParameterException(java.lang.String message, java.lang.Throwable cause)
          Creates a new instance
NonExistentParameterException(java.lang.Throwable cause)
          Creates a new instance
 
Method Summary
 java.lang.String getName()
          Retrieves the name of the parameter related to the error
 java.lang.String toString()
          Returns a short description of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonExistentParameterException

public NonExistentParameterException()
Creates a new instance


NonExistentParameterException

public NonExistentParameterException(java.lang.String message)
Creates a new instance

Parameters:
message - The error message

NonExistentParameterException

public NonExistentParameterException(java.lang.String message,
                                     java.lang.String name)
Creates a new instance

Parameters:
message - The error message
name - The name of the query parameter related to the error

NonExistentParameterException

public NonExistentParameterException(java.lang.Throwable cause)
Creates a new instance

Parameters:
cause - The cause of the error

NonExistentParameterException

public NonExistentParameterException(java.lang.String message,
                                     java.lang.Throwable cause)
Creates a new instance

Parameters:
message - The error message
cause - The cause of the error
Method Detail

getName

public java.lang.String getName()
Retrieves the name of the parameter related to the error

Returns:
The name of the parameter

toString

public java.lang.String toString()
Returns a short description of this exception. The description is similar to that of an Exception also including the query parameter name related to the error, if it is specified.

Overrides:
toString in class java.lang.Throwable
Returns:
A string representation of the exception