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); }
public ResponseXml ToResponseXml(ResponseXmlFormat format) { return(this.ErrorCode == ErrorCode.None ? this.ToXml(format) : ErrorXml.Create(this.ErrorCode)); }