blob: e3c61c8e59794ce71f096cb25cf0fdd31ea616e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include <stdio.h>
#include "stdafx.h"
#include <stdlib.h>
#include <conio.h>
#include <windows.h>
#include "lmdfu.h"
#include "lmdfuwrap.h"
#include "DFUError.h"
#pragma once
using namespace System;
namespace Tango
{
namespace FirmwareUpdateLib {
ref class DFUException :
public Exception
{
internal:
DFUException(tLMDFUErr error) : Exception(gcnew String(_LMDFUErrorStringGet(error))) { Error = static_cast<DFUError>(error); };
public:
property DFUError Error;
DFUException();
DFUException(DFUError error) : Exception(error.ToString()) { Error = error; };
DFUException(DFUError error, String^ message) : Exception(message) { Error = error; };
};
}
}
|