/** * Initializes the ServiceException using an {@link ErrorContent} object that * encapsulates most of the information about the error. Most ErrorContent * instances are declared in a subclass of {@link ErrorDomain} containing all * the errors for a GData domain (service or portion of service). */ public ServiceException(ErrorContent errorCode) { this(errorCode.getInternalReason()); this.errorElement = new ErrorElement(errorCode); }
/** * Initializes the ServiceException using an {@link ErrorContent} object that * encapsulates most of the information about the error. Most ErrorContent * instances are declared in a subclass of {@link ErrorDomain} containing all * the errors for a GData domain (service or portion of service). */ public ServiceException(ErrorContent errorCode) { this(errorCode.getInternalReason()); this.errorElement = new ErrorElement(errorCode); }
/** * Initializes the ServiceException using an {@link ErrorContent} object that * encapsulates most of the information about the error. Most ErrorContent * instances are declared in a subclass of {@link ErrorDomain} containing all * the errors for a GData domain (service or portion of service). */ public ServiceException(ErrorContent errorCode) { super(nullsafe(errorCode.getInternalReason())); httpHeaders = new HashMap<String, List<String>>(); this.errorElement = new ErrorElement(errorCode); }
/** * Initializes the ServiceException using an {@link ErrorContent} object that * encapsulates most of the information about the error, and an embedded * exception. Most ErrorContent instances are declared in a subclass of * {@link ErrorDomain} containing all the errors for this GData domain * (service or portion of service). */ public ServiceException(ErrorContent errorCode, Throwable cause) { super(nullsafe(errorCode.getInternalReason()), cause); httpHeaders = new HashMap<String, List<String>>(); this.errorElement = new ErrorElement(errorCode); }
/** * Construct a new error info as a copy of the given error element. */ ErrorElement(ErrorContent source) { this.errorDomainName = source.getDomainName(); this.errorCodeName = source.getCodeName(); this.errorLocation = source.getLocation(); this.errorLocationType = source.getLocationType(); this.errorInternalReason = source.getInternalReason(); this.errorExtendedHelp = source.getExtendedHelp(); this.errorSendReport = source.getSendReport(); this.errorDebugInfo = source.getDebugInfo(); }
/** * Construct a new error info as a copy of the given error element. */ ErrorElement(ErrorContent source) { this.errorDomainName = source.getDomainName(); this.errorCodeName = source.getCodeName(); this.errorLocation = source.getLocation(); this.errorLocationType = source.getLocationType(); this.errorInternalReason = source.getInternalReason(); this.errorExtendedHelp = source.getExtendedHelp(); this.errorSendReport = source.getSendReport(); this.errorDebugInfo = source.getDebugInfo(); }
/** * Construct a new error info as a copy of the given error element. */ ErrorElement(ErrorContent source) { this.errorDomainName = source.getDomainName(); this.errorCodeName = source.getCodeName(); this.errorLocation = source.getLocation(); this.errorLocationType = source.getLocationType(); this.errorInternalReason = source.getInternalReason(); this.errorExtendedHelp = source.getExtendedHelp(); this.errorSendReport = source.getSendReport(); this.errorDebugInfo = source.getDebugInfo(); }