org.apache.droids.exception
Class 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:
java.io.Serializable

public class ParserNotFoundException
extends DroidsException

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

Version:
1.0
See Also:
Serialized Form

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