Class GlobalError

java.lang.Object
com.broadleafcommerce.common.error.GlobalError
Direct Known Subclasses:
FieldValidationError

public class GlobalError extends Object
Represents an individual global error that came back from the API. Allows users to provide additional details about what went wrong in a request.
Author:
Phillip Verheyden (phillipuniverse)
  • Constructor Details

    • GlobalError

      public GlobalError(String code, String reason)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCode

      public String getCode()
      Can be either machine-readable or human-readable representation of the error
    • getReason

      public String getReason()
      Human-readable representation of the error