com.atlassian.jira.rest
Class ServerErrorWebException

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.ServerErrorWebException
All Implemented Interfaces:
Serializable

public class ServerErrorWebException
extends javax.ws.rs.WebApplicationException

This exception is thrown when a JIRA REST resource aborts in an unforeseen manner).

Since:
v4.4
See Also:
Serialized Form

Constructor Summary
ServerErrorWebException()
          Creates a new ServerErrorWebException for the given issue.
ServerErrorWebException(ErrorCollection errors)
          Creates a new ServerErrorWebException, with a collection of errors.
ServerErrorWebException(Throwable cause)
          Creates a new ServerErrorWebException.
ServerErrorWebException(Throwable cause, ErrorCollection errors)
          Creates a new ServerErrorWebException, 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

ServerErrorWebException

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


ServerErrorWebException

public ServerErrorWebException(Throwable cause)
Creates a new ServerErrorWebException.

Parameters:
cause - the underlying cause of the exception

ServerErrorWebException

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

Parameters:
errors - an ErrorCollection containing the errors

ServerErrorWebException

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

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.