/// <summary> /// Initializes a new instance of the <see cref="SoundIOException"/> class with an error message /// adequate to specified error code and a reference to the inner exception that is the cause of this exception. /// </summary> /// <param name="error">Error code to retrieve error message for.</param> /// <param name="innerException">The exception that is the cause of the current exception.</param> public SoundIOException(SoundIoError error, Exception innerException) : base(error.GetErrorMessage(), innerException) { }
/// <summary> /// Initializes a new instance of the <see cref="SoundIOException"/> class with an error message /// adequate to specified error code. /// </summary> /// <param name="error">Error code to retrieve error message for.</param> public SoundIOException(SoundIoError error) : base(error.GetErrorMessage()) { }