com.atlassian.jira.rest.util
Class ResponseUtils
java.lang.Object
com.atlassian.jira.rest.util.ResponseUtils
public class ResponseUtils
- extends Object
Builds response objects for REST service
- Since:
- v6.1
Method Summary |
static javax.ws.rs.core.Response |
throwEx(ErrorCollection errorCollection)
Throws exceptions that corresponds to a ErrorCollection.Reason |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
throwEx
public static javax.ws.rs.core.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
Copyright © 2002-2013 Atlassian. All Rights Reserved.