Skip to content

Commit

Permalink
Added overloads to ResponseStatus class
Browse files Browse the repository at this point in the history
  • Loading branch information
steff-mueller committed Jan 4, 2012
1 parent d246402 commit 4597f4e
Showing 1 changed file with 21 additions and 0 deletions.
Expand Up @@ -27,6 +27,27 @@ public class ResponseStatus
public ResponseStatus()
{
}

/// <summary>
/// Initializes a new instance of the <see cref="ResponseStatus"/> class.
///
/// A response status with an errorcode == failure
/// </summary>
public ResponseStatus(string errorCode)
{
this.ErrorCode = errorCode;
}

/// <summary>
/// Initializes a new instance of the <see cref="ResponseStatus"/> class.
///
/// A response status with an errorcode == failure
/// </summary>
public ResponseStatus(string errorCode, string message)
: this(errorCode)
{
this.Message = message;
}

/// <summary>
/// Holds the custom ErrorCode enum if provided in ValidationException
Expand Down

0 comments on commit 4597f4e

Please sign in to comment.