2 using System
.Collections
.Generic
;
4 namespace Mono
.Debugger
.Soft
6 public sealed class ExceptionEventRequest
: EventRequest
{
11 internal ExceptionEventRequest (VirtualMachine vm
, TypeMirror exc_type
, bool caught
, bool uncaught
) : base (vm
, EventType
.Exception
) {
12 if (exc_type
!= null) {
13 CheckMirror (vm
, exc_type
);
14 TypeMirror exception_type
= vm
.RootDomain
.Corlib
.GetType ("System.Exception", false, false);
15 if (!exception_type
.IsAssignableFrom (exc_type
))
16 throw new ArgumentException ("The exception type does not inherit from System.Exception", "exc_type");
18 this.exc_type
= exc_type
;
20 this.uncaught
= uncaught
;
23 public TypeMirror ExceptionType
{
29 public override void Enable () {
30 var mods
= new List
<Modifier
> ();
31 mods
.Add (new ExceptionModifier () { Type = exc_type != null ? exc_type.Id : 0, Caught = caught, Uncaught = uncaught }
);