1 package com.atlassian.vcache;
2
3 import com.atlassian.annotations.PublicApi;
4
5 /**
6 * Represents a failure occurred when using the VCache API.
7 *
8 * @since 1.0
9 */
10 @PublicApi
11 public class VCacheException extends RuntimeException {
12 /**
13 * Creates an instance with the supplied message.
14 *
15 * @param message the message for the exception.
16 */
17 public VCacheException(String message) {
18 super(message);
19 }
20
21 /**
22 * Creates an instance with the supplied message and cause.
23 *
24 * @param message the message for the exception.
25 * @param cause the cause of the exception.
26 */
27 public VCacheException(String message, Throwable cause) {
28 super(message, cause);
29 }
30 }
31