Class B2ErrorStructure


  • public class B2ErrorStructure
    extends java.lang.Object
    This structure describes the json that's returned by b2 for errors.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String code
      A single token that indicates the cause of the error.
      java.lang.String message
      A human-readable string giving details (if available) about what went wrong.
      int status
      The HTTP status code being returned.
    • Constructor Summary

      Constructors 
      Constructor Description
      B2ErrorStructure​(int status, java.lang.String code, java.lang.String message)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • status

        public final int status
        The HTTP status code being returned. This is redundant with the status code in the header of the response, but it's handy to have it here, to.
      • code

        public final java.lang.String code
        A single token that indicates the cause of the error. If you need to check for specific error returns, use this, not the message.
      • message

        public final java.lang.String message
        A human-readable string giving details (if available) about what went wrong.
    • Constructor Detail

      • B2ErrorStructure

        public B2ErrorStructure​(int status,
                                java.lang.String code,
                                java.lang.String message)