@MessageBundle(projectCode="JBAS")
public interface ProtocolMessages
| Modifier and Type | Field and Description |
|---|---|
static ProtocolMessages |
MESSAGES
The default messages.
|
| Modifier and Type | Method and Description |
|---|---|
IllegalStateException |
alreadyConnected()
Creates an exception indicating a connection is already connected.
|
IllegalStateException |
alreadyStarted()
Creates an exception indicating the channel and receiver have already been started.
|
IllegalArgumentException |
cannotSetUriScheme()
Creates an exception indicating the uriScheme cannot be set with the endpoint.
|
IllegalArgumentException |
cannotSpecifyMultipleTimeouts()
Creates an exception indicating that both connect timeout and the connect timeout property cannot be used
together.
|
IOException |
channelClosed()
Creates an exception indicating that the channel is closed.
|
ConnectException |
connectWasCancelled() |
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 |
failedToCreateServerThread()
Creates an exception indicating a failure to create the server thread.
|
IOException |
failedToReadObject(Throwable cause)
Creates an exception indicating a failure to read the object.
|
IOException |
failedToWriteManagementResponseHeaders(Throwable cause)
Creates an exception indicating a failure to write management response headers.
|
UTFDataFormatException |
invalidByte()
Creates an exception indicating an invalid byte.
|
UTFDataFormatException |
invalidByte(char c,
int i)
Creates an exception indicating an invalid byte.
|
IOException |
invalidByteToken(int expected,
byte actual)
Creates an exception indicating an invalid byte token was found.
|
IOException |
invalidCommandByte(int commandByte)
Creates an exception indicating the an invalid command byte was read.
|
IOException |
invalidSignature(String signature)
Creates an exception indicating the signature is invalid.
|
IOException |
invalidStartChunk(int chunk)
Creates an exception indicating an invalid start chunk was found.
|
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. |
IllegalStateException |
notConnected()
Creates an exception indicating there is no connection.
|
IllegalArgumentException |
nullExecutor() |
IllegalArgumentException |
nullParameters(String parameterName1,
String parameterName2)
Creates an exception indicating the
parameterName1 and parameterName2 are null. |
IllegalArgumentException |
nullVar(String varName)
Creates an exception indicating the
varName is null. |
IOException |
operationHandlerNotSet()
Creates an exception indicating there is no operation handler set.
|
IllegalStateException |
operationIdAlreadyExists(int operationId)
Creates an exception indicating that the operation id is already taken.
|
EOFException |
readBytes(int bytesRead)
Creates an exception indicating the number of bytes read.
|
IOException |
requestHandlerIdNotFound(byte id,
AbstractMessageHandler operationHandler)
Creates an exception indicating there was no request handler found with the id in the operation handler.
|
IOException |
responseHandlerAlreadyRegistered()
Creates an exception indicating the response handler has already been registered for the request.
|
IOException |
responseHandlerNotFound(int id)
Creates an exception indicating the response handler id was not found for the request.
|
IOException |
serverError(String errorMessage)
Creates an exception indicating a problem happened executing on the server.
|
IOException |
streamClosed()
Creates an exception indicating the stream is closed.
|
IllegalStateException |
threadCreationRefused()
Creates an exception indicating the thread creation was refused.
|
EOFException |
unexpectedEndOfStream()
Creates an exception indicating the an unexpected end of stream was detected.
|
IllegalArgumentException |
unmatchedScheme(String scheme,
URI uri)
Creates an exception indicating the scheme does not match the URI.
|
IOException |
writeChannelClosed()
Creates an exception indicating the write channel is closed.
|
IOException |
writesAlreadyShutdown()
Creates an exception indicating the writes have already been shutdown.
|
static final ProtocolMessages MESSAGES
@Message(id=12140,
value="Already connected")
IllegalStateException alreadyConnected()
IllegalStateException for the error.@Message(id=12141,
value="Channel and receiver already started")
IllegalStateException alreadyStarted()
IllegalStateException for the error.@Message(id=12142,
value="Can\'t use both a connect timeout and a connect timeout property")
IllegalArgumentException cannotSpecifyMultipleTimeouts()
IllegalArgumentException for the error.@Message(id=12143,
value="Can\'t set uriScheme with specified endpoint")
IllegalArgumentException cannotSetUriScheme()
IllegalArgumentException for the error.@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=12145,
value="Connection was cancelled")
ConnectException connectWasCancelled()
@Message(id=12146,
value="Failed to create server thread")
IOException failedToCreateServerThread()
IOException for the error.@Message(id=12147,
value="Failed to read object")
IOException failedToReadObject(@Cause
Throwable cause)
cause - the cause of the error.IOException for the error.@Message(id=12148,
value="Failed to write management response headers")
IOException failedToWriteManagementResponseHeaders(@Cause
Throwable cause)
cause - the cause of the error.IOException for the error.@Message(id=12149,
value="Invalid byte")
UTFDataFormatException invalidByte()
UTFDataFormatException for the error.@Message(id=12150,
value="Invalid byte:%s(%d)")
UTFDataFormatException invalidByte(char c,
int i)
c - the character.i - the raw integer.UTFDataFormatException 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=12152,
value="Invalid command byte read: %s")
IOException invalidCommandByte(int commandByte)
commandByte - the command byte read.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=12154,
value="Invalid start chunk start [%s]")
IOException invalidStartChunk(int chunk)
chunk - the start chunk.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=12158,
value="No operation handler set")
IOException operationHandlerNotSet()
IOException for the error.@Message(id=12159,
value="Not connected")
IllegalStateException notConnected()
IllegalStateException 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=12161,
value="%s and %s are null")
IllegalArgumentException nullParameters(String parameterName1,
String parameterName2)
parameterName1 and parameterName2 are null.parameterName1 - the parameter name.parameterName2 - the parameter name.IllegalArgumentException for the error.@Message(id=12162,
value="Read %d bytes.")
EOFException readBytes(int bytesRead)
bytesRead - the number of bytes read.EOFException for the error.@Message(id=12163,
value="No request handler found with id %s in operation handler %s")
IOException requestHandlerIdNotFound(byte id,
AbstractMessageHandler operationHandler)
id - the id of the request handler.operationHandler - the operation handler the id was not found in.IOException for the error.@Message(id=12164,
value="Response handler already registered for request")
IOException responseHandlerAlreadyRegistered()
IOException for the error.@Message(value="No response handler for request %s") IOException responseHandlerNotFound(int id)
id - the id.IOException for the error.@Message(id=12165,
value="A problem happened executing on the server: %s")
IOException serverError(String errorMessage)
errorMessage - the error message.IOException for the error@Message(id=12166,
value="Stream closed")
IOException streamClosed()
IOException for the error.@Message(id=12167,
value="Thread creation was refused")
IllegalStateException threadCreationRefused()
IllegalStateException for the error.@Message(id=12168,
value="Unexpected end of stream")
EOFException unexpectedEndOfStream()
EOFException for the error.@Message(id=12169,
value="Scheme %s does not match uri %s")
IllegalArgumentException unmatchedScheme(String scheme,
URI uri)
scheme - the scheme.uri - the uri.IllegalArgumentException for the error.@Message(id=12170,
value="Write channel closed")
IOException writeChannelClosed()
IOException for the error.@Message(id=12171,
value="Writes are already shut down")
IOException writesAlreadyShutdown()
IOException 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.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.