Exemple #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        protected void OnUnhandledException(IApiResponse pResp, Exception pEx)
        {
            var fr = new FabResponse <FabObject>();

            fr.Error   = FabError.ForInternalServerError();
            fr.TotalMs = pResp.GetTimerMilliseconds();

            pResp.SetJsonWith(fr);
            pResp.Status    = HttpStatusCode.InternalServerError;
            pResp.Unhandled = pEx;

            Log.Fatal("Unhandled exception: " + pEx.Message, pEx);
        }