This repository has been archived by the owner on Sep 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- When Ask/RPC calling the exception will now be ServiceNotFoundException instead of Exception
- Loading branch information
1 parent
55c3354
commit fa3552f
Showing
2 changed files
with
34 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Holon.Services | ||
{ | ||
/// <summary> | ||
/// Represents an exception which occurs when a service cannot be found. | ||
/// </summary> | ||
public class ServiceNotFoundException : Exception | ||
{ | ||
/// <summary> | ||
/// Creates a new service not found exception. | ||
/// </summary> | ||
public ServiceNotFoundException() { | ||
} | ||
|
||
/// <summary> | ||
/// Creates a new service not found exception. | ||
/// </summary> | ||
/// <param name="message">The message.</param> | ||
public ServiceNotFoundException(string message) : base(message) { | ||
} | ||
|
||
/// <summary> | ||
/// Creates a new service not found exception. | ||
/// </summary> | ||
/// <param name="message">The message.</param> | ||
/// <param name="innerException">The inner exception.</param> | ||
public ServiceNotFoundException(string message, Exception innerException) : base(message, innerException) { | ||
} | ||
} | ||
} |