|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perforce.p4java.impl.mapbased.rpc.func.client.ClientMessage
public class ClientMessage
Perforce P4Java client error / info / warning messages.
These are messages that the P4Java API itself generates rather than receives from the Perforce server. Most of these are copied fairly closely from the corresponding C++ API class(es) and not all are currently used. The messages defined here all use the common %arg% string interpolation scheme that's used for messages coming in from the server in (e.g.) client-Message packets.
The errors here are not typically passed as-is back to the end user, but are translated in the map-based server implementation superclass ServerImpl to more generic P4Java exceptions or filespec statuses.
No attempt has (yet) been made to internationalise the corresponding error strings, but that may happen in future releases of the API.
FIXME: what to do about P4Java-specific codes? -- HR.(Current strategy is to simply use zero, as we don't actually extract error codes anywhere yet).
Nested Class Summary | |
---|---|
static class |
ClientMessage.ClientMessageId
Basic message ID. |
static class |
ClientMessage.ClientMessageType
Where the message originated, or which part of the command chain it refers to. |
Method Summary | |
---|---|
static ClientMessage |
getClientMessage(ClientMessage.ClientMessageId id)
Return the ClientMessage associated with this ID, if any. |
int |
getCode()
|
ClientMessage.ClientMessageId |
getId()
|
String[] |
getMsgParamNames()
|
String[] |
getMsgs()
|
void |
setCode(int code)
|
void |
setId(ClientMessage.ClientMessageId id)
|
void |
setMsgParamNames(String[] msgParamNames)
|
void |
setMsgs(String[] msgs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ClientMessage getClientMessage(ClientMessage.ClientMessageId id)
public ClientMessage.ClientMessageId getId()
public void setId(ClientMessage.ClientMessageId id)
public String[] getMsgs()
public void setMsgs(String[] msgs)
public String[] getMsgParamNames()
public void setMsgParamNames(String[] msgParamNames)
public int getCode()
public void setCode(int code)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |