Mono.Debugger.Backend.Mono.MonoLanguageBackend.IsExceptionType C# (CSharp) Method

IsExceptionType() public method

public IsExceptionType ( TargetClassType ctype ) : bool
ctype Mono.Debugger.Languages.TargetClassType
return bool
        public override bool IsExceptionType(TargetClassType ctype)
        {
            MonoClassType mono_type = ctype as MonoClassType;
            if (mono_type == null)
                return false;

            Cecil.TypeDefinition exc_type = builtin_types.ExceptionType.Type;
            Cecil.TypeDefinition type = mono_type.Type;

            while (type != null) {
                if (exc_type == type)
                    return true;

                type = resolve_cecil_type_ref (type.BaseType);
            }

            return false;
        }