Class RestError
- java.lang.Object
-
- com.atlassian.confluence.rest.api.model.RestError
-
@ExperimentalApi public class RestError extends Object
Contains a standardised error payload forServiceException
s thrown by REST resources.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ValidationResult
getData()
The data returned here is aValidationResult
so that clients can process the i18n key and arguments.String
getMessage()
String
getReason()
int
getStatusCode()
-
-
-
Method Detail
-
getData
public @Nullable ValidationResult getData()
The data returned here is aValidationResult
so that clients can process the i18n key and arguments.
-
getStatusCode
public int getStatusCode()
-
getMessage
public String getMessage()
-
getReason
public String getReason()
-
-