| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // System.Runtime.InteropServices.ExternalException.cs
- //
- // Author:
- // Miguel De Icaza ([email protected])
- //
- // (C) 2001 Ximian, Inc. http://www.ximian.com
- //
- using System.Runtime.Serialization;
- using System.Globalization;
- namespace System.Runtime.InteropServices {
- [Serializable]
- public class ExternalException : SystemException {
- private int error_code;
-
- // Constructors
- public ExternalException ()
- : base (Locale.GetText ("External exception"))
- {
- }
- public ExternalException (string message)
- : base (message)
- {
- }
- protected ExternalException(SerializationInfo info, StreamingContext context)
- : base (info, context) {
- }
-
- public ExternalException (string message, Exception inner)
- : base (message, inner)
- {
- }
- public ExternalException (string message, int errorCode)
- : base (message)
- {
- error_code = errorCode;
- }
- public virtual int ErrorCode {
- get {
- return error_code;
- }
- }
- }
- }
|