Exemplo n.º 1
0
        public static ErrorXml Create(ErrorCode errorCode)
        {
            var errorXml = new ErrorXml
            {
                Code = errorCode,
                Text =
                    Resources.ErrorCode.ResourceManager.GetString(
                        string.Format("_{0:000}", (int)errorCode))
            };

            return(errorXml);
        }
Exemplo n.º 2
0
 public ResponseXml ToResponseXml(ResponseXmlFormat format)
 {
     return(this.ErrorCode == ErrorCode.None ? this.ToXml(format) : ErrorXml.Create(this.ErrorCode));
 }