public class

ResponseUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.util.ResponseUtils

Class Overview

Builds response objects for REST service

Summary

Public Methods
static Response throwEx(ErrorCollection errorCollection)
Throws exceptions that corresponds to a ErrorCollection.Reason
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Response throwEx (ErrorCollection errorCollection)

Throws exceptions that corresponds to a ErrorCollection.Reason

Parameters
errorCollection error list
Returns
  • never, only throws exceptions
Throws
NotFoundWebException
NotAuthorisedWebException
ForbiddenWebException
BadRequestWebException
ServerErrorWebException