Beispiel #1
0
        public static string Build(Exception exception)
        {
            MCException e = new MCException(exception, "MCS_UNKNOWN", "An unknown error has occurred.");

            return(GetPrimaryHeader(e.Code) + "\n" + GetBasicHeaders(ResponseType.Error, e.ToString()) + "\n\n" + e + Reference.MCS_ENDOFTEXT);
        }
Beispiel #2
0
 public static string Build(MCException e)
 {
     return(GetPrimaryHeader(e.Code) + "\n" + GetBasicHeaders(ResponseType.Error, e.ToString()) + "\n\n" + e + Reference.MCS_ENDOFTEXT);
 }