diff options
| author | krasimir <krasimir@chalmers.se> | 2017-05-31 13:48:36 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2017-05-31 13:48:36 +0000 |
| commit | e1cec06f7483ea913885a7918728a1c3f8ece650 (patch) | |
| tree | a79d46b37747a60d285090e22572ea4f3810814d /src/runtime/dotNet/Exceptions.cs | |
| parent | 2a8d2806e4612d320de0155d8cdbbd68cd1d1995 (diff) | |
.NET binding to GF by Bjørnar Luteberget
Diffstat (limited to 'src/runtime/dotNet/Exceptions.cs')
| -rw-r--r-- | src/runtime/dotNet/Exceptions.cs | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/runtime/dotNet/Exceptions.cs b/src/runtime/dotNet/Exceptions.cs new file mode 100644 index 000000000..91193db74 --- /dev/null +++ b/src/runtime/dotNet/Exceptions.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PGFSharp +{ + + [Serializable] + public class PGFError : Exception + { + public PGFError() { } + public PGFError(string message) : base(message) { } + public PGFError(string message, Exception inner) : base(message, inner) { } + protected PGFError( + System.Runtime.Serialization.SerializationInfo info, + System.Runtime.Serialization.StreamingContext context) : base(info, context) + { } + } + + + [Serializable] + public class ParseError : Exception + { + public ParseError() { } + public ParseError(string message) : base(message) { } + public ParseError(string message, Exception inner) : base(message, inner) { } + protected ParseError( + System.Runtime.Serialization.SerializationInfo info, + System.Runtime.Serialization.StreamingContext context) : base(info, context) + { } + } + + [Serializable] + public class TypeError : Exception + { + public TypeError() { } + public TypeError(string message) : base(message) { } + public TypeError(string message, Exception inner) : base(message, inner) { } + protected TypeError( + System.Runtime.Serialization.SerializationInfo info, + System.Runtime.Serialization.StreamingContext context) : base(info, context) + { } + } +} |
