Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdError.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdError : System.ApplicationException, global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdError(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdError obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdError() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public void setContext(OdErrorContext pErrorContext) {
54 }
55
57 OdErrorContext ret = (OdErrorContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdErrorContext),GlobalsPINVOKE.OdError_context__SWIG_0(swigCPtr),false); /*createInt 3_2*/
58
60 return ret;
61}
62
63 public OdError(OdResult code) : this(GlobalsPINVOKE.new_OdError__SWIG_0((int)code), true) {
65 }
66
67 public OdError(OdError source) : this(GlobalsPINVOKE.new_OdError__SWIG_1(OdError.getCPtr(source)), true) {
69 }
70
71 public OdError(OdErrorContext pErrorContext) : this(GlobalsPINVOKE.new_OdError__SWIG_2(OdErrorContext.getCPtr(pErrorContext)), true) {
73 }
74
75 public OdError(String errorMessage) : this(GlobalsPINVOKE.new_OdError__SWIG_3(errorMessage), true) {
77 }
78
79 public OdError(String errorMessage, OdError previousError) : this(GlobalsPINVOKE.new_OdError__SWIG_4(errorMessage, OdError.getCPtr(previousError)), true) {
81 }
82
83 public OdError Assign(OdError source) {
84 OdError ret = new OdError(GlobalsPINVOKE.OdError_Assign(swigCPtr, OdError.getCPtr(source)), false);
86 return ret;
87 }
88
89 public OdResult code() {
92 return ret;
93 }
94
96 string ret = GlobalsPINVOKE.OdError_description(swigCPtr);
98 return ret;
99}
100
101 public void attachPreviousError(OdError previousError) {
104 }
105
111
112}
113
114}
static global::System.Exception Retrieve()
static global::System.IntPtr OdError_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdError_context__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdError_description(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdError(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdError_attachPreviousError(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdError_setContext(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static int OdError_code(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdErrorContext obj)
void setContext(OdErrorContext pErrorContext)
Definition: OdError.cs:51
void attachPreviousError(OdError previousError)
Definition: OdError.cs:101
OdError Assign(OdError source)
Definition: OdError.cs:83
OdError(String errorMessage)
Definition: OdError.cs:75
OdErrorContext context()
Definition: OdError.cs:56
Teigha.Core.OdErrorContext vb_context()
Definition: OdError.cs:110
OdError(OdResult code)
Definition: OdError.cs:63
String description()
Definition: OdError.cs:95
OdError(IntPtr cPtr, bool cMemoryOwn)
Definition: OdError.cs:21
OdError(OdError source)
Definition: OdError.cs:67
OdResult code()
Definition: OdError.cs:89
OdError(String errorMessage, OdError previousError)
Definition: OdError.cs:79
OdError(OdErrorContext pErrorContext)
Definition: OdError.cs:71
virtual void Dispose(bool disposing)
Definition: OdError.cs:39
static HandleRef getCPtr(OdError obj)
Definition: OdError.cs:26