-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding SocketLayerException to better handle errors
- Loading branch information
1 parent
365c319
commit c76b88a
Showing
8 changed files
with
68 additions
and
14 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
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
42 changes: 42 additions & 0 deletions
42
Assets/Mirage/Runtime/SocketLayer/Connection/SocketLayerException.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,42 @@ | ||
using System; | ||
|
||
namespace Mirage.SocketLayer | ||
{ | ||
/// <summary> | ||
/// Base Exception by all errors from using SocketLayer | ||
/// </summary> | ||
public class SocketLayerException : Exception | ||
{ | ||
public SocketLayerException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
|
||
public class BufferFullException : SocketLayerException | ||
{ | ||
public BufferFullException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
|
||
public class MessageSizeException : SocketLayerException | ||
{ | ||
public MessageSizeException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
|
||
public class NoConnectionException : SocketLayerException | ||
{ | ||
public NoConnectionException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
|
||
public class NotifyTokenException : SocketLayerException | ||
{ | ||
public NotifyTokenException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/Mirage/Runtime/SocketLayer/Connection/SocketLayerException.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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