net.sourceforge.rssowl.dao
Class NewsfeedFactoryException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.sourceforge.rssowl.dao.NewsfeedFactoryException
All Implemented Interfaces:
Serializable

public class NewsfeedFactoryException
extends Exception

Custom exception that occurs if there was an error while parsing a RSS XML and creating the Channel

Version:
1.0
Author:
Benjamin Pasero
See Also:
Serialized Form

Field Summary
static int ERROR_AUTH_REQUIRED
          Status Codes: 401 Unauthorized
static int ERROR_FILE_NOT_FOUND
          Status Codes: 4xx except for 401
static int ERROR_INVALID_NEWSFEED
          File is not a valid XML document
static int ERROR_INVALID_XML
          File is not a valid Newsfeed
static int ERROR_WORKING_OFFLINE
          RSSOwl is in offline mode
private  String httpStatus
           
private  String msg
           
private  String reason
           
(package private) static long serialVersionUID
          Unique serialVersionUID for serialization
private  String title
           
private  int type
           
private  String url
           
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NewsfeedFactoryException(String url, String reason, String httpStatus, int type)
          Instantiate a new NewsfeedFactoryException
 
Method Summary
 String getHttpStatus()
          Get the HTTP Status
 String getMessage()
           
 String getMsg()
          Get the error message
 String getReason()
          Get the error reason in dependance of the given error type
 String getTitle()
          Get the Title of the loading Newsfeed
 String getUrl()
          Get the URL of the loading Newsfeed
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_AUTH_REQUIRED

public static final int ERROR_AUTH_REQUIRED
Status Codes: 401 Unauthorized

See Also:
Constant Field Values

ERROR_FILE_NOT_FOUND

public static final int ERROR_FILE_NOT_FOUND
Status Codes: 4xx except for 401

See Also:
Constant Field Values

ERROR_INVALID_NEWSFEED

public static final int ERROR_INVALID_NEWSFEED
File is not a valid XML document

See Also:
Constant Field Values

ERROR_INVALID_XML

public static final int ERROR_INVALID_XML
File is not a valid Newsfeed

See Also:
Constant Field Values

ERROR_WORKING_OFFLINE

public static final int ERROR_WORKING_OFFLINE
RSSOwl is in offline mode

See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
Unique serialVersionUID for serialization

See Also:
Constant Field Values

httpStatus

private String httpStatus

msg

private String msg

reason

private String reason

title

private String title

type

private int type

url

private String url
Constructor Detail

NewsfeedFactoryException

public NewsfeedFactoryException(String url,
                                String reason,
                                String httpStatus,
                                int type)
Instantiate a new NewsfeedFactoryException

Parameters:
url - URL of the loading Newsfeed
reason - Additional info about the Exception
httpStatus - The HTTP status of the connection
type - The type of the error
Method Detail

getHttpStatus

public String getHttpStatus()
Get the HTTP Status

Returns:
String The HTTP Status

getMessage

public String getMessage()
See Also:
Throwable.getMessage()

getMsg

public String getMsg()
Get the error message

Returns:
String The error message

getReason

public String getReason()
Get the error reason in dependance of the given error type

Returns:
String The error reason

getTitle

public String getTitle()
Get the Title of the loading Newsfeed

Returns:
String The title.

getUrl

public String getUrl()
Get the URL of the loading Newsfeed

Returns:
String The URL.


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo