Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Class SearchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.esri.gpt.framework.context.ApplicationException
              extended by com.esri.gpt.catalog.search.SearchException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SearchPointOptionsException

public class SearchException
extends ApplicationException

General exception class used by package. Can get messages from property files too.

See Also:
Serialized Form

Constructor Summary
SearchException(Exception exception)
          Instantiates a new search exception.
SearchException(String detailedMessage)
          Instantiates a new search exception.
SearchException(String detailedMessage, Object[] args)
          Instantiates a new search exception.
SearchException(String detailedMessage, Throwable exception)
          Instantiates a new search exception.
SearchException(String detailedMessage, Throwable exception, Object[] args)
          Instantiates a new search exception.
 
Method Summary
 boolean getHasUserMessage()
          Checks if exception should be changed to a gui type exception.
 
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
 

Constructor Detail

SearchException

public SearchException(String detailedMessage)
Instantiates a new search exception.

Parameters:
detailedMessage - the detailed message

SearchException

public SearchException(String detailedMessage,
                       Object[] args)
Instantiates a new search exception.

Parameters:
detailedMessage - the detailed message
args - the arguments to be put into the message

SearchException

public SearchException(Exception exception)
Instantiates a new search exception.

Parameters:
exception - Exception to be included

SearchException

public SearchException(String detailedMessage,
                       Throwable exception)
Instantiates a new search exception.

Parameters:
exception - the exception
detailedMessage - the detailed message

SearchException

public SearchException(String detailedMessage,
                       Throwable exception,
                       Object[] args)
Instantiates a new search exception.

Parameters:
detailedMessage - the detailed message
exception - the exception
args - the args for the detailed message
Method Detail

getHasUserMessage

public boolean getHasUserMessage()
Checks if exception should be changed to a gui type exception. If true do not bother printing exception in logs (general user error)

Returns:
true, if exception has non searchException cause

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.