org.apache.droids.exception
Class ParserNotFoundException

Package class diagram package ParserNotFoundException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.droids.exception.DroidsException
              extended by org.apache.droids.exception.ParserNotFoundException
All Implemented Interfaces:
Serializable

public class ParserNotFoundException
extends DroidsException

ParserNotFoundException gives a detailed exception for problems that can occur while parsing a task.

See Also:
Serialized Form

Constructor Summary
ParserNotFoundException(String message)
          Constructs a new exception with the specified detail message.
ParserNotFoundException(String url, String contentType)
          Create an exception for the given url and content type
ParserNotFoundException(String url, String contentType, String message)
          Create an exception for the given url and content type
 
Method Summary
 String getContentType()
          If not constructed via message only it will return the content typee which has caused the problem
 String getUrl()
          If not constructed via message only it will return the url which has caused the problem
 
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

ParserNotFoundException

public ParserNotFoundException(String url,
                               String contentType)
Create an exception for the given url and content type

Parameters:
url - url which produced the error
contentType - content type of the url

ParserNotFoundException

public ParserNotFoundException(String url,
                               String contentType,
                               String message)
Create an exception for the given url and content type

Parameters:
url - url which produced the error
contentType - content type of the url
message - a detailed message to state what has gone wrong

ParserNotFoundException

public ParserNotFoundException(String message)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).

Parameters:
message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
Method Detail

getUrl

public String getUrl()
If not constructed via message only it will return the url which has caused the problem

Returns:
url which has caused the problem

getContentType

public String getContentType()
If not constructed via message only it will return the content typee which has caused the problem

Returns:
content typee which has caused the problem


Copyright © 2008 The Apache Software Foundation