Example #1
0
 static void AppendNpcError(ITextBuilder responseBuilder, NpcErrorCode errorCode, String errorMessage)
 {
     responseBuilder.AppendAscii(NpcReturnObject.NpcReturnLineNpcErrorPrefix);
     responseBuilder.AppendNumber((byte)errorCode);
     responseBuilder.AppendAscii(' ');
     responseBuilder.AppendAscii(errorCode.ToString());
     responseBuilder.AppendAscii(errorMessage.Replace("\n", "\\n"));
     responseBuilder.AppendAscii('\n');
 }
Example #2
0
 public NpcErrorException(NpcErrorCode errorCode, String npcError)
     : base(npcError)
 {
     this.errorCode = errorCode;
 }