blob: c62d78c5290d474abec53c5776c6bf777b46a382 (
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
|
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BytecodeTranslator {
public enum ExceptionType {
UnresolvedMethod,
UnresolvedType,
};
public class TranslationException : Exception {
public TranslationException(string reason) : base(reason) {
}
public TranslationException(ExceptionType eType, string message)
: base(eType.ToString() + ": " + message) {
}
}
}
|