Exemplo n.º 1
0
        public virtual TRestHttpError ToHttpError()
        {
            var httpError = Activator.CreateInstance <TRestHttpError>();

            httpError.StatusCode = ErrorType.ToHttpStatusCode();
            httpError.Message    = Message;
            httpError.Details    = Details;
            return(httpError);
        }