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 /**
14 * Creates an instance with the supplied message.
15 *
16 * @param message the message for the exception.
17 */
18 public VCacheException(String message)
19 {
20 super(message);
21 }
22
23 /**
24 * Creates an instance with the supplied message and cause.
25 *
26 * @param message the message for the exception.
27 * @param cause the cause of the exception.
28 */
29 public VCacheException(String message, Throwable cause)
30 {
31 super(message, cause);
32 }
33 }
34