-
Notifications
You must be signed in to change notification settings - Fork 27
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
4 changed files
with
85 additions
and
86 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
50 changes: 50 additions & 0 deletions
50
src/Interprocess/Semaphore/Posix/PosixSemaphoreException.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,50 @@ | ||
using System; | ||
|
||
namespace Cloudtoid.Interprocess.Semaphore.Posix | ||
{ | ||
internal class PosixSemaphoreException | ||
: Exception | ||
{ | ||
public PosixSemaphoreException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
public PosixSemaphoreException(int errorCode) | ||
: base($"Semaphore exception with inner code = {errorCode}") | ||
{ | ||
} | ||
} | ||
|
||
internal class InvalidPosixSemaphoreException : PosixSemaphoreException | ||
{ | ||
public InvalidPosixSemaphoreException() | ||
: base($"The specified semaphore does not exist or it is invalid.") | ||
{ | ||
} | ||
} | ||
|
||
internal class PosixSemaphoreNotExistsException : PosixSemaphoreException | ||
{ | ||
public PosixSemaphoreNotExistsException() | ||
: base($"The specified semaphore does not exist.") | ||
{ | ||
} | ||
} | ||
|
||
internal class PosixSemaphoreExistsException : PosixSemaphoreException | ||
{ | ||
public PosixSemaphoreExistsException() | ||
: base("A Semaphore with this name already exists") | ||
{ | ||
} | ||
} | ||
|
||
internal class PosixSemaphoreUnauthorizedAccessException : PosixSemaphoreException | ||
{ | ||
public PosixSemaphoreUnauthorizedAccessException() | ||
: base("The semaphore exists, but the caller does not have permission to open it.") | ||
{ | ||
} | ||
} | ||
} |
50 changes: 0 additions & 50 deletions
50
src/Interprocess/Semaphore/Posix/PosixSempahoreException.cs
This file was deleted.
Oops, something went wrong.