function see(x)
    if x<0
        throw(DomainError("Too small"))
    elseif x>1000
        throw(DomainError("Too big"))
    end
    println(x)
end

try
    see(8)
    see(-9)
catch i
    if isa(i,DomainError)
        print(i.val)
    end
end
