Example #1
0
File: Vsa.cs Project: ForNeVeR/pnet
 public VsaException(VsaError error, String message,
                     Exception innerException)
     : base(message, innerException)
 {
     this.error = error;
                 #if !ECMA_COMPAT
     this.HResult = (int)error;
                 #endif
 }
Example #2
0
File: Vsa.cs Project: ForNeVeR/pnet
        // 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
        }
Example #3
0
 public VsaException(VsaError error, string message, Exception innerException) : base(message, innerException)
 {
    HResult = (int)error;
 }
Example #4
0
 public VsaException(VsaError error) : base(String.Empty, (int)error)
 {
 }
Example #5
0
 public VsaException(VsaError error, string message) : base(message, (int)error)
 {            
 }
Example #6
0
	public VsaException(VsaError error, String message,
						Exception innerException)
			: base(message, innerException)
			{
				this.error = error;
			#if !ECMA_COMPAT
				this.HResult = (int)error;
			#endif
			}
Example #7
0
 public VsaException(VsaError error)
 {
     HResult = (int)error;
 }
Example #8
0
 public VsaException(VsaError error, string message) : base(message, (int)error)
 {
 }
Example #9
0
 public VsaException(VsaError error, string message) : this(error, message, null)
 {
 }
Example #10
0
 public VsaException(VsaError error) : this(error, "", null)
 {
 }
Example #11
0
 public VsaException(VsaError error, string message) : this(error, message, null)
 {
 }
 public VsaException(VsaError error, string message, System.Exception innerException)
 {
 }
Example #13
0
 // Raise an error condition.
 private void Raise(VsaError vsaErrorNumber)
 {
     throw Error(vsaErrorNumber);
 }
 public VsaException(VsaError error, string message)
 {
 }
 public VsaException(VsaError error)
 {
 }
Example #16
0
	// 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
			}
Example #17
0
        // === Helper Methods ===

        protected VsaException Error(VsaError vsaErrorNumber)
        {
            return(new VsaException(vsaErrorNumber));
        }
Example #18
0
		public VsaException (VsaError error)
		{
			HResult = (int) error;
		}
Example #19
0
 public VsaException(VsaError error) : base(String.Empty, (int)error)
 {
 }
	// Helper method that constructs an error exception.
	protected VsaException Error(VsaError vsaErrorNumber)
			{
				return new VsaException(vsaErrorNumber);
			}
Example #21
0
 public VsaException(VsaError error) : this(error, "", null)
 {
 }
 public VsaException(VsaError error, string message)
 {
 }
Example #23
0
 public VsaException(VsaError error, string message, Exception innerException) : base(message, innerException)
 {
     HResult = (int)error;
 }
 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)
 {
 }