@MessageBundle(projectCode="JBAS")
public interface ManagedDMRContentMessages
Modifier and Type | Field and Description |
---|---|
static ManagedDMRContentMessages |
MESSAGES
The messages.
|
Modifier and Type | Method and Description |
---|---|
IllegalArgumentException |
illegalChildClass(Class<? extends Resource> clazz)
Creates a runtime exception indicating an attempt was made to register a resource whose implementation is
not the correct class.
|
IllegalArgumentException |
illegalChildType(String type,
String legalType)
Creates a runtime exception indicating the type element of resource being registered is incorrect.
|
OperationFailedException |
invalidHash(String expectedHash,
PathAddress address,
String currentHash)
Creates an exception indicating the expected content hash provided by the caller does not match the current value.
|
IllegalStateException |
messageDigestAlgorithmNotAvailable(NoSuchAlgorithmException cause)
Creates a runtime exception indicating the SHA-1 message digest algorithm is not available.
|
IllegalStateException |
noContentFoundWithHash(String hash)
Creates a runtime exception indicating no content could be found using the given hash
|
IllegalStateException |
nullParent()
Creates a runtime exception indicating a ManagedDMRContentResource did not have a parent resource
|
static final ManagedDMRContentMessages MESSAGES
@Message(id=12250, value="Invalid hash \'%s\' for content at address %s; current hash is \'%s\' -- perhaps the content has been updated by another caller?") OperationFailedException invalidHash(String expectedHash, PathAddress address, String currentHash)
expectedHash
- the expected hash of the contentaddress
- the address of the contentcurrentHash
- the current hash of the contentOperationFailedException
for the error.@Message(id=12251, value="Cannot obtain Message Digest algorithm SHA-1") IllegalStateException messageDigestAlgorithmNotAvailable(@Cause NoSuchAlgorithmException cause)
cause
- the cause.IllegalStateException
for the error.@Message(id=12252, value="Illegal child type %s -- must be %s") IllegalArgumentException illegalChildType(String type, String legalType)
type
- the provided type.legalType
- the valid typeIllegalArgumentException
for the error.@Message(id=12253, value="Illegal child resource class %s") IllegalArgumentException illegalChildClass(Class<? extends Resource> clazz)
clazz
- the class of the resource that cannot be registeredIllegalArgumentException
for the error.@Message(id=12254, value="No content found with hash %s") IllegalStateException noContentFoundWithHash(String hash)
hash
- the hash of the contentIllegalStateException
for the error.@Message(id=12255, value="null parent") IllegalStateException nullParent()
IllegalStateException
for the error.Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.