Class RestError

java.lang.Object
com.atlassian.confluence.rest.api.model.RestError

@ExperimentalApi public class RestError extends Object
Contains a standardised error payload for ServiceExceptions thrown by REST resources.
  • Method Details

    • getData

      public @Nullable ValidationResult getData()
      The data returned here is a ValidationResult so that clients can process the i18n key and arguments.
    • getStatusCode

      public int getStatusCode()
    • getMessage

      public String getMessage()
    • getReason

      public String getReason()
    • builder

      public static RestError.Builder builder()