Пример #1
0
        /*--------------------------------------------------------------------------------------------*/
        public static FabError ForFault(FabFault pFault)
        {
            var e = new FabError();

            e.Code    = (int)pFault.ErrCode;
            e.Name    = pFault.ErrCode + "";
            e.Message = pFault.Message;
            return(e);
        }
Пример #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public static FabError ForInternalServerError()
        {
            var e = new FabError();

            e.Code    = (int)FabFault.Code.InternalError;
            e.Name    = FabFault.Code.InternalError + "";
            e.Message = "An internal server error occurred.";
            return(e);
        }