-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ExecutionReplyException, ProgramCreationReplyException
- Loading branch information
1 parent
39d0eab
commit a9f1067
Showing
5 changed files
with
117 additions
and
42 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
49 changes: 49 additions & 0 deletions
49
net/src/Sails.Remoting/Exceptions/ExecutionReplyException.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,49 @@ | ||
using System; | ||
using Substrate.Gear.Api.Generated.Model.gear_core_errors.simple; | ||
|
||
namespace Sails.Remoting.Exceptions; | ||
|
||
public class ExecutionReplyException : ReplyException | ||
{ | ||
public SimpleExecutionError ExecutionError { get; } = SimpleExecutionError.Unsupported; | ||
|
||
protected ExecutionReplyException() | ||
{ | ||
} | ||
|
||
protected ExecutionReplyException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
public ExecutionReplyException(string message, ErrorReplyReason reason, SimpleExecutionError executionError) | ||
: base(message, reason) | ||
{ | ||
this.ExecutionError = executionError; | ||
} | ||
|
||
public ExecutionReplyException( | ||
string message, | ||
ErrorReplyReason reason, | ||
SimpleExecutionError executionError, | ||
Exception innerException) | ||
: base(message, reason, innerException) | ||
{ | ||
this.ExecutionError = executionError; | ||
} | ||
|
||
protected ExecutionReplyException(string message, ErrorReplyReason reason) | ||
: base(message, reason) | ||
{ | ||
} | ||
|
||
protected ExecutionReplyException(string message, ErrorReplyReason reason, Exception innerException) | ||
: base(message, reason, innerException) | ||
{ | ||
} | ||
|
||
protected ExecutionReplyException(string message, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
net/src/Sails.Remoting/Exceptions/ProgramCreationReplyException.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,48 @@ | ||
using System; | ||
using Substrate.Gear.Api.Generated.Model.gear_core_errors.simple; | ||
|
||
namespace Sails.Remoting.Exceptions; | ||
|
||
public class ProgramCreationReplyException : ReplyException | ||
{ | ||
public SimpleProgramCreationError ProgramCreationError { get; } | ||
|
||
protected ProgramCreationReplyException() | ||
{ | ||
} | ||
|
||
protected ProgramCreationReplyException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public ProgramCreationReplyException(string message, ErrorReplyReason reason, SimpleProgramCreationError programCreationError) | ||
: base(message, reason) | ||
{ | ||
this.ProgramCreationError = programCreationError; | ||
} | ||
|
||
public ProgramCreationReplyException( | ||
string message, | ||
ErrorReplyReason reason, | ||
SimpleProgramCreationError programCreationError, | ||
Exception innerException) | ||
: base(message, reason, innerException) | ||
{ | ||
this.ProgramCreationError = programCreationError; | ||
} | ||
|
||
|
||
protected ProgramCreationReplyException(string message, ErrorReplyReason reason) : base(message, reason) | ||
{ | ||
} | ||
|
||
protected ProgramCreationReplyException(string message, ErrorReplyReason reason, Exception innerException) | ||
: base(message, reason, innerException) | ||
{ | ||
} | ||
|
||
protected ProgramCreationReplyException(string message, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
} |
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