Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobException"/> class.
 /// </summary>
 /// <param name="errorCode">The associated <see cref="Api.Models.ErrorCode"/>.</param>
 /// <param name="innerException">The inner <see cref="Exception"/> for the nase <see cref="Exception"/>.</param>
 public JobException(ErrorCode errorCode, Exception innerException) : base(errorCode.Describe(), innerException)
 {
     ErrorCode = errorCode;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorMessageResponse"/> <see langword="class"/>.
 /// </summary>
 /// <param name="errorCode">The <see cref="ErrorMessageResponse"/>.</param>
 public ErrorMessageResponse(ErrorCode errorCode)
 {
     ErrorCode        = errorCode;
     Message          = errorCode.Describe();
     ServerApiVersion = ApiHeaders.Version;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobException"/> class.
 /// </summary>
 /// <param name="errorCode">The associated <see cref="Api.Models.ErrorCode"/>.</param>
 public JobException(ErrorCode errorCode) : base(errorCode.Describe())
 {
     ErrorCode = errorCode;
 }