These are chat archives for dev-ua/erlang

20th
Feb 2017
Mingsterism
@mingsterism
Feb 20 2017 23:52
hi guys
this my code
throws(F) -> 
    try F() of 
        _ -> ok 
    catch 
        Throw -> {throw, caught, Throw}
    end.

errors(F) -> 
    try F() of 
        _ -> ok 
    catch 
        error:Error -> {error, caught, Error}
    end.
what does error:Error mean? how come there is no throw:Throw