@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 |
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.
|
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 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. |
IllegalArgumentException |
nullVar(String varName)
Creates an exception indicating the
varName is null. |
EOFException |
readBytes(int bytesRead)
Creates an exception indicating the number of bytes read.
|
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 an unexpected end of stream was detected.
|
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=16640,
value="Failed to create server thread")
IOException failedToCreateServerThread()
IOException for the error.@Message(id=16641,
value="Failed to read object")
IOException failedToReadObject(@Cause
Throwable cause)
cause - the cause of the error.IOException for the error.@Message(id=16642,
value="Invalid byte")
UTFDataFormatException invalidByte()
UTFDataFormatException for the error.@Message(id=16643,
value="Invalid byte:%s(%d)")
UTFDataFormatException invalidByte(char c,
int i)
c - the character.i - the raw integer.UTFDataFormatException for the error.@Message(id=16644,
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(id=16645,
value="Invalid command byte read: %s")
IOException invalidCommandByte(int commandByte)
commandByte - the command byte read.IOException for the error.@Message(id=16646,
value="Invalid signature [%s]")
IOException invalidSignature(String signature)
signature - the invalid signature.IOException for the error.@Message(id=16647,
value="Invalid start chunk start [%s]")
IOException invalidStartChunk(int chunk)
chunk - the start chunk.IOException for the error.@Message(id=16648,
value="Invalid type: %s")
IOException invalidType(String type)
type - the invalid type.IOException for the error.@Message(id=16649,
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=16650,
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=16651,
value="%s is null")
IllegalArgumentException nullVar(String varName)
varName is null.varName - the variable name.IllegalArgumentException for the error.@Message(id=16652,
value="Read %d bytes.")
EOFException readBytes(int bytesRead)
bytesRead - the number of bytes read.EOFException for the error.@Message(id=16654,
value="Stream closed")
IOException streamClosed()
IOException for the error.@Message(id=16655,
value="Thread creation was refused")
IllegalStateException threadCreationRefused()
IllegalStateException for the error.@Message(id=16656,
value="Unexpected end of stream")
EOFException unexpectedEndOfStream()
EOFException for the error.@Message(id=16657,
value="Write channel closed")
IOException writeChannelClosed()
IOException for the error.@Message(id=16658,
value="Writes are already shut down")
IOException writesAlreadyShutdown()
IOException for the error.Copyright © 2014 JBoss by Red Hat. All rights reserved.