public VsaException(VsaError error, String message, Exception innerException) : base(message, innerException) { this.error = error; #if !ECMA_COMPAT this.HResult = (int)error; #endif }
// Serialization support. #if CONFIG_SERIALIZATION public VsaException(SerializationInfo info, StreamingContext context) { if (info == null) { throw new ArgumentNullException("info"); } error = (VsaError)(info.GetInt32("VsaException_HResult")); #if !ECMA_COMPAT HResult = (int)error; HelpLink = info.GetString("VsaException_HelpLink"); Source = info.GetString("VsaException_Source"); #endif }
public VsaException(VsaError error, string message, Exception innerException) : base(message, innerException) { HResult = (int)error; }
public VsaException(VsaError error) : base(String.Empty, (int)error) { }
public VsaException(VsaError error, string message) : base(message, (int)error) { }
public VsaException(VsaError error) { HResult = (int)error; }
public VsaException(VsaError error, string message) : this(error, message, null) { }
public VsaException(VsaError error) : this(error, "", null) { }
public VsaException(VsaError error, string message, System.Exception innerException) { }
// Raise an error condition. private void Raise(VsaError vsaErrorNumber) { throw Error(vsaErrorNumber); }
public VsaException(VsaError error, string message) { }
public VsaException(VsaError error) { }
// Serialization support. #if CONFIG_SERIALIZATION public VsaException(SerializationInfo info, StreamingContext context) { if(info == null) { throw new ArgumentNullException("info"); } error = (VsaError)(info.GetInt32("VsaException_HResult")); #if !ECMA_COMPAT HResult = (int)error; HelpLink = info.GetString("VsaException_HelpLink"); Source = info.GetString("VsaException_Source"); #endif }
// === Helper Methods === protected VsaException Error(VsaError vsaErrorNumber) { return(new VsaException(vsaErrorNumber)); }
public VsaException (VsaError error) { HResult = (int) error; }
// Helper method that constructs an error exception. protected VsaException Error(VsaError vsaErrorNumber) { return new VsaException(vsaErrorNumber); }