public class ResponseUtils extends Object
Modifier and Type | Method and Description |
---|---|
static javax.ws.rs.core.Response |
throwEx(ErrorCollection errorCollection)
Throws exceptions that corresponds to a ErrorCollection.Reason
|
static void |
throwIfError(SimpleErrorCollection errorCollection)
Checks if the collection has an error and throws if necessary
|
public static javax.ws.rs.core.Response throwEx(ErrorCollection errorCollection)
errorCollection
- error listpublic static void throwIfError(SimpleErrorCollection errorCollection)
errorCollection
- the error collectionCopyright © 2002-2015 Atlassian. All Rights Reserved.