com.atlassian.jira.rest.exception
Class NotFoundWebException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.ws.rs.WebApplicationException
                  extended by com.atlassian.jira.rest.exception.NotFoundWebException
All Implemented Interfaces:
Serializable

public class NotFoundWebException
extends javax.ws.rs.WebApplicationException

This exception is thrown when a JIRA REST resource is not found, or it cannot be read for some other reason (such as security checks).

Since:
v4.2
See Also:
Serialized Form

Constructor Summary
NotFoundWebException()
          Creates a new NotFoundWebException for the given issue.
NotFoundWebException(ErrorCollection errors)
          Creates a new NotFoundWebException, with a collection of errors.
NotFoundWebException(Throwable cause)
          Creates a new NotFoundWebException.
NotFoundWebException(Throwable cause, ErrorCollection errors)
          Creates a new NotFoundWebException, with a collection of errors and a cause.
 
Method Summary
 
Methods inherited from class javax.ws.rs.WebApplicationException
getResponse
 
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

NotFoundWebException

public NotFoundWebException()
Creates a new NotFoundWebException for the given issue. Whenever possible it is preferable to use NotFoundWebException(com.atlassian.jira.rest.api.util.ErrorCollection) constructor, passing a collection of errors.


NotFoundWebException

public NotFoundWebException(Throwable cause)
Creates a new NotFoundWebException.

Parameters:
cause - the underlying cause of the exception

NotFoundWebException

public NotFoundWebException(ErrorCollection errors)
Creates a new NotFoundWebException, with a collection of errors.

Parameters:
errors - an ErrorCollection containing the errors

NotFoundWebException

public NotFoundWebException(Throwable cause,
                            ErrorCollection errors)
Creates a new NotFoundWebException, with a collection of errors and a cause.

Parameters:
cause - the underlying cause of the exception
errors - an ErrorCollection containing the errors


Copyright © 2002-2014 Atlassian. All Rights Reserved.