-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Showing
2 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/Elders.Cronus/Exception/UnableToResolveTenantExeption.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,20 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Elders.Cronus.AspNetCore.Exeptions | ||
{ | ||
[Serializable] | ||
// Important: This attribute is NOT inherited from Exception, and MUST be specified | ||
// otherwise serialization will fail with a SerializationException stating that | ||
// "Type X in Assembly Y is not marked as serializable." | ||
public class UnableToResolveTenantException : Exception | ||
{ | ||
public UnableToResolveTenantException() { } | ||
|
||
public UnableToResolveTenantException(string message) : this(message, null) { } | ||
|
||
public UnableToResolveTenantException(string message, Exception innerException) : base(message, innerException) { } | ||
|
||
protected UnableToResolveTenantException(SerializationInfo info, StreamingContext context) : base(info, context) { } | ||
} | ||
} |
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