-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExceptions.cs
36 lines (30 loc) · 1.03 KB
/
Exceptions.cs
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
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using crdebug.RemoteTypes;
namespace crdebug.Exceptions {
public class ChromeRemoteJSException : Exception {
public ExceptionDetails Details;
public ChromeRemoteJSException (ExceptionDetails details)
: base ((details.exception != null) ? details.exception.description ?? details.exception.className : details.text) {
Details = details;
}
}
public class ChromeRemoteException : Exception {
public readonly int Code;
public ChromeRemoteException (int code, string message)
: base (message + " #" + code) {
Code = code;
}
}
public class ChromeConnectException : Exception {
public ChromeConnectException (string message)
: base (message) {
}
public ChromeConnectException (string message, Exception innerException)
: base (message, innerException) {
}
}
}