Exemplo n.º 1
0
        public static CMPStorageError CreateErrorFromException(Exception exception)
        {
            var error = new CMPStorageError()
            {
                CodeString        = String.Empty,
                MessageString     = exception?.Message,
                DescriptionString = exception?.InnerException?.Message
            };

            return(error);
        }
Exemplo n.º 2
0
        public static CMPStorageError CreateError(string errorCodeString, string errorMessageString)
        {
            var error = new CMPStorageError()
            {
                CodeString        = errorCodeString,
                MessageString     = errorMessageString,
                DescriptionString = errorMessageString
            };

            return(error);
        }