forked from OData/RESTier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
265736c
commit d6ec25f
Showing
30 changed files
with
775 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/Microsoft.Restier.Core/Exceptions/PreconditionFailedException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.Restier.Core.Exceptions | ||
{ | ||
/// <summary> | ||
/// This exception is used for 412 Precondition Failed response. | ||
/// </summary> | ||
[Serializable] | ||
public class PreconditionFailedException : System.Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the PreconditionFailedException class. | ||
/// </summary> | ||
public PreconditionFailedException() | ||
: this(null, null) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the PreconditionFailedException class. | ||
/// </summary> | ||
/// <param name="message">Plain text error message for this exception.</param> | ||
public PreconditionFailedException(string message) | ||
: this(message, null) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the PreconditionFailedException class. | ||
/// </summary> | ||
/// <param name="message">Plain text error message for this exception.</param> | ||
/// <param name="innerException">Exception that caused this exception to be thrown.</param> | ||
public PreconditionFailedException(string message, System.Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/Microsoft.Restier.Core/Exceptions/ResourceNotFoundException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.Restier.Core.Exceptions | ||
{ | ||
/// <summary> | ||
/// This exception is used for 404 Not found response. | ||
/// </summary> | ||
[Serializable] | ||
public class ResourceNotFoundException : System.Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the ResourceNotFoundException class. | ||
/// </summary> | ||
public ResourceNotFoundException() | ||
: this(null, null) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the ResourceNotFoundException class. | ||
/// </summary> | ||
/// <param name="message">Plain text error message for this exception.</param> | ||
public ResourceNotFoundException(string message) | ||
: this(message, null) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the ResourceNotFoundException class. | ||
/// </summary> | ||
/// <param name="message">Plain text error message for this exception.</param> | ||
/// <param name="innerException">Exception that caused this exception to be thrown.</param> | ||
public ResourceNotFoundException(string message, System.Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.