tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
JobException.cs
Go to the documentation of this file.
1using System;
2
4
6{
10 public sealed class JobException : Exception
11 {
15 public ErrorCode? ErrorCode { get; }
16
20 public JobException()
21 {
22 }
23
28 public JobException(string message)
29 : base(message)
30 {
31 }
32
38 public JobException(string message, Exception innerException)
39 : base(message, innerException)
40 {
41 }
42
47 public JobException(ErrorCode errorCode)
48 : base(errorCode.Describe())
49 {
50 ErrorCode = errorCode;
51 }
52
58 public JobException(ErrorCode errorCode, Exception innerException)
59 : base(errorCode.Describe(), innerException)
60 {
61 ErrorCode = errorCode;
62 }
63 }
64}
Operation exceptions thrown from the context of a Models.Job.
JobException()
Initializes a new instance of the JobException class.
JobException(string message)
Initializes a new instance of the JobException class.
JobException(string message, Exception innerException)
Initializes a new instance of the JobException class.
JobException(ErrorCode errorCode, Exception innerException)
Initializes a new instance of the JobException class.
JobException(ErrorCode errorCode)
Initializes a new instance of the JobException class.
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.
Definition ErrorCode.cs:12