@MessageBundle(projectCode="JBAS")
public interface ProtocolMessages
| Modifier and Type | Field and Description |
|---|---|
static ProtocolMessages |
MESSAGES
The default messages.
|
| Modifier and Type | Method and Description |
|---|---|
IOException |
channelClosed()
Creates an exception indicating that the channel is closed.
|
ConnectException |
couldNotConnect(URI uri)
Creates an exception indicating a connection could not be made.
|
ConnectException |
failedToConnect(URI uri,
IOException cause)
Creates an exception indicating a connection could not be made.
|
IOException |
invalidByteToken(int expected,
byte actual)
Creates an exception indicating an invalid byte token was found.
|
IOException |
invalidSignature(String signature)
Creates an exception indicating the signature is invalid.
|
IOException |
invalidType(String type)
Creates an exception indicating the type is invalid.
|
IllegalArgumentException |
invalidType(String validType1,
String validType2,
byte providedType)
Creates an exception indicating the provided type was invalid.
|
IllegalArgumentException |
invalidUrl(String url)
Creates an exception indicating only the
url is a valid URL. |
IOException |
noSuchResponseHandler(String type) |
IllegalArgumentException |
nullExecutor() |
IllegalArgumentException |
nullVar(String varName)
Creates an exception indicating the
varName is null. |
IllegalStateException |
operationIdAlreadyExists(int operationId)
Creates an exception indicating that the operation id is already taken.
|
IOException |
responseHandlerNotFound(int id)
Creates an exception indicating the response handler id was not found for the request.
|
static final ProtocolMessages MESSAGES
@Message(id=12144,
value="Could not connect to %s. The connection timed out")
ConnectException couldNotConnect(URI uri)
uri - the URI attempted to connect.ConnectException for the error.@Message(id=12151,
value="Invalid byte token. Expecting \'%d\' received \'%d\'")
IOException invalidByteToken(int expected,
byte actual)
expected - the expected value.actual - the actual value.IOException for the error.@Message(id=12153,
value="Invalid signature [%s]")
IOException invalidSignature(String signature)
signature - the invalid signature.IOException for the error.@Message(id=12155,
value="Invalid type: %s")
IOException invalidType(String type)
type - the invalid type.IOException for the error.@Message(id=12156,
value="Type is neither %s or %s: %s")
IllegalArgumentException invalidType(String validType1,
String validType2,
byte providedType)
validType1 - the first valid type.validType2 - the second valid type.providedType - the type provided.IllegalArgumentException for the error.@Message(id=12157,
value="Only \'%s\' is a valid url")
IllegalArgumentException invalidUrl(String url)
url is a valid URL.url - the valid url.IllegalArgumentException for the error.@Message(id=12160,
value="%s is null")
IllegalArgumentException nullVar(String varName)
varName is null.varName - the variable name.IllegalArgumentException for the error.@Message(id=12172,
value="Operation with id %d already registered")
IllegalStateException operationIdAlreadyExists(int operationId)
operationId - the operation idIllegalStateException for the error.@Message(id=12173,
value="Null executor")
IllegalArgumentException nullExecutor()
@Message(id=12174,
value="Could not connect to %s. The connection failed")
ConnectException failedToConnect(URI uri,
@Cause
IOException cause)
uri - the URI attempted to connect.cause - the cause of the failure.ConnectException for the error.@Message(id=12175,
value="Channel closed")
IOException channelClosed()
IOException for the error.@Message(id=12176,
value="no handler registered for request type \'%s\'.")
IOException noSuchResponseHandler(String type)
@Message(id=12177,
value="No response handler for request %s")
IOException responseHandlerNotFound(int id)
id - the id.IOException for the error.Copyright © 2014 JBoss by Red Hat. All rights reserved.