public VpxInteropException(VpxCodecError error) : this(null, error, null) { }
static string ToMessageAddendum(VpxCodecError error) { return(error == VpxCodecError.OK ? null : " : " + Marshal.PtrToStringAuto(VpxMarshal.vpx_codec_err_to_string(error))); }
public VpxInteropException(string message, VpxCodecError error) : this(message, error, null) { }
public VpxInteropException(string message, VpxCodecError error, Exception innerException) : base(message + ToMessageAddendum(error), innerException) { }
public VpxInteropException(VpxCodecError error, Exception innerException) : this(null, error, innerException) { }