@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.
|
ConnectException |
couldNotConnect(long connectionTimeout)
Creates an exception indicating a connection could not be made.
|
ConnectException |
couldNotConnect(URI uri,
long timeout,
String timeoutProperty)
Creates an exception indicating a connection could not be made.
|
IllegalArgumentException |
executorNeeded()
Creates an exception indicating the executor is needed when not endpoint is specified.
|
IllegalArgumentException |
executorUnneeded()
Creates an exception indicating the executor is not needed when an endpoint is specified.
|
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 |
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.
|
EOFException |
readBytes(int bytesRead)
Creates an exception indicating the number of bytes read.
|
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(value="Already connected") IllegalStateException alreadyConnected()
IllegalStateException
for the error.@Message(value="Channel and receiver already started") IllegalStateException alreadyStarted()
IllegalStateException
for the error.@Message(value="Can\'t use both a connect timeout and a connect timeout property") IllegalArgumentException cannotSpecifyMultipleTimeouts()
IllegalArgumentException
for the error.@Message(value="Can\'t set uriScheme with specified endpoint") IllegalArgumentException cannotSetUriScheme()
IllegalArgumentException
for the error.@Message(value="Could not connect to %s in %sms. Make sure the server is running and/or consider setting a longer timeout by setting -D%s=.") ConnectException couldNotConnect(URI uri, long timeout, String timeoutProperty)
uri
- the URI attempted to connect.timeout
- the timeout of the connection.timeoutProperty
- the timeout property name.ConnectException
for the error.@Message(value="Could not connect to remote server at %1$s within %1$sms") ConnectException couldNotConnect(long connectionTimeout)
connectionTimeout
- the connection timeoutConnectException
for the error.@Message(value="Need an executor when endpoint is not specified") IllegalArgumentException executorNeeded()
IllegalArgumentException
for the error.@Message(value="Don\'t need an executor when specified endpoint") IllegalArgumentException executorUnneeded()
IllegalArgumentException
for the error.@Message(value="Failed to create server thread") IOException failedToCreateServerThread()
IOException
for the error.@Message(value="Failed to read object") IOException failedToReadObject(@Cause Throwable cause)
cause
- the cause of the error.IOException
for the error.@Message(value="Failed to write management response headers") IOException failedToWriteManagementResponseHeaders(@Cause Throwable cause)
cause
- the cause of the error.IOException
for the error.@Message(value="Invalid byte") UTFDataFormatException invalidByte()
UTFDataFormatException
for the error.@Message(value="Invalid byte:%s(%d)") UTFDataFormatException invalidByte(char c, int i)
c
- the character.i
- the raw integer.UTFDataFormatException
for the error.@Message(value="Invalid byte token. Expecting \'%s\' received \'%s\'") IOException invalidByteToken(int expected, byte actual)
expected
- the expected value.actual
- the actual value.IOException
for the error.@Message(value="Invalid command byte read: %s") IOException invalidCommandByte(int commandByte)
commandByte
- the command byte read.IOException
for the error.@Message(value="Invalid signature [%s]") IOException invalidSignature(String signature)
signature
- the invalid signature.IOException
for the error.@Message(value="Invalid start chunk start [%s]") IOException invalidStartChunk(int chunk)
chunk
- the start chunk.IOException
for the error.@Message(value="Invalid type: %s") IOException invalidType(String type)
type
- the invalid type.IOException
for the error.@Message(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(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(value="No operation handler set") IOException operationHandlerNotSet()
IOException
for the error.@Message(value="Not connected") IllegalStateException notConnected()
IllegalStateException
for the error.@Message(value="%s is null") IllegalArgumentException nullVar(String varName)
varName
is null
.varName
- the variable name.IllegalArgumentException
for the error.@Message(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(value="Read %d bytes.") EOFException readBytes(int bytesRead)
bytesRead
- the number of bytes read.EOFException
for the error.@Message(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(value="A problem happened executing on the server: %s") IOException serverError(String errorMessage)
errorMessage
- the error message.IOException
for the error@Message(value="Stream closed") IOException streamClosed()
IOException
for the error.@Message(value="Thread creation was refused") IllegalStateException threadCreationRefused()
IllegalStateException
for the error.@Message(value="Unexpected end of stream") EOFException unexpectedEndOfStream()
EOFException
for the error.@Message(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(value="Write channel closed") IOException writeChannelClosed()
IOException
for the error.@Message(value="Writes are already shut down") IOException writesAlreadyShutdown()
IOException
for the error.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.