summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/util/BelatedCreationException.java
blob: ea27e20e4c5ec52e59b5d0d5a5f63c533d67db7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2013 Amazon.com Inc. All Rights Reserved.
 * AMAZON.COM CONFIDENTIAL
 */

package com.amazon.carbonado.util;

/**
 * Exception throw when attempting to perform an unavailable operation on an
 * object undergoing belated creation.
 *
 * @see com.amazon.carbonado.util.BelatedCreator;
 *
 * @author Jesse Morgan (morganjm)
 */
public class BelatedCreationException extends IllegalStateException {
    /**
     * Create a new exception with the given message.
     *
     * @param message The exception message.
     */
    public BelatedCreationException(String message) {
        super(message);
    }

    /**
     * Create a new exception with the given message and cause.
     *
     * @param message The exception message.
     * @param cause The cause of the exception.
     */
    public BelatedCreationException(String message, Throwable cause) {
        super(message, cause);
    }
}