/** * Creates an instance for the specified reason and cause. * * @param reason the reason for the failure * @param cause the cause of the failure */ public ExternalCacheException(Reason reason, Throwable cause) { super("Failed due to " + reason.name(), cause); this.reason = requireNonNull(reason); }
/** * Creates an instance for the specified reason. * * @param reason the reason for the failure */ public ExternalCacheException(Reason reason) { super("Failed due to " + reason.name()); this.reason = requireNonNull(reason); }