public class LegacyRestHelper extends Object
Constructor and Description |
---|
LegacyRestHelper() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
createFailureResultMap(IllegalArgumentException e)
Creates a JSON serializable response when a request fails
|
static Map<String,Object> |
createSuccessResultMap(Iterable<Label> labels)
Creates a JSON serializable response when a request succeeds
|
public static Map<String,Object> createFailureResultMap(IllegalArgumentException e)
e
- Exception that caused the request to failCopyright © 2003–2017 Atlassian. All rights reserved.