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'); }
public NpcErrorException(NpcErrorCode errorCode, String npcError) : base(npcError) { this.errorCode = errorCode; }