/// <summary> /// Initializes a new instance of the <see cref="ServiceException"/> class. /// </summary> /// <param name="errorCode">Service error code.</param> public ServiceException(ServiceErrorCode errorCode) { this.errorCode = errorCode; }
/// <summary> /// Initializes a new instance of the <see cref="ServiceException"/> class. /// </summary> /// <param name="errorCode">Service error code.</param> /// <param name="arguments">Formatting arguments for the message.</param> public ServiceException(ServiceErrorCode errorCode, params string[] arguments) { this.errorCode = errorCode; this.errorCode.Message = string.Format(CultureInfo.InvariantCulture, this.errorCode.Message, arguments); }
/// <summary> /// Initializes a new instance of the <see cref="MSSqlErrorException"/> class. /// </summary> /// <param name="errorCode">The error code.</param> /// <param name="arguments">The arguments.</param> public MSSqlErrorException(ServiceErrorCode errorCode, params string[] arguments) : base(errorCode, arguments) { }
/// <summary> /// Initializes a new instance of the <see cref="MSSqlErrorException"/> class. /// </summary> /// <param name="errorCode">The error code.</param> public MSSqlErrorException(ServiceErrorCode errorCode) : base(errorCode) { }
/// <summary> /// Initializes a new instance of the <see cref="ServiceException"/> class. /// </summary> /// <param name="errorCode">Service error code.</param> /// <param name="arguments">Formatting arguments for the message.</param> public ServiceException(ServiceErrorCode errorCode, params string[] arguments) { this.errorCode = errorCode; this.errorCode.Message = string.Format(CultureInfo.InvariantCulture, this.errorCode.Message, arguments); }
/// <summary> /// Initializes a new instance of the <see cref="ServiceException"/> class. /// </summary> /// <param name="errorCode">Service error code.</param> public ServiceException(ServiceErrorCode errorCode) { this.errorCode = errorCode; }
/// <summary> /// Initializes a new instance of the <see cref="FileServiceErrorException"/> class. /// </summary> /// <param name="errorCode">The error code.</param> public FileServiceErrorException(ServiceErrorCode errorCode) : base(errorCode) { }