diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-10-25 01:36:27 +0000 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-10-25 01:36:27 +0000 |
commit | bcfaaffa3751f8c7883e41c162ba4030fd9bd21a (patch) | |
tree | 7e2416a6ec9d3733a20e45e7028bf60410ac7504 /src/main/java/com/amazon/carbonado/util | |
parent | 1a6cb41e1db610d6cea249b5b33ad65cfd945b2f (diff) |
Fixing ReplicatedRepository so that transactions may be entered when the master
is unavailable as long as no changes are made to replicated storables.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/util')
-rw-r--r-- | src/main/java/com/amazon/carbonado/util/BelatedCreationException.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/util/BelatedCreationException.java b/src/main/java/com/amazon/carbonado/util/BelatedCreationException.java new file mode 100644 index 0000000..ea27e20 --- /dev/null +++ b/src/main/java/com/amazon/carbonado/util/BelatedCreationException.java @@ -0,0 +1,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); + } +} |