{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaDiff/TaylorSeries.jl/issues/33","labels_url":"https://api.github.com/repos/JuliaDiff/TaylorSeries.jl/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/JuliaDiff/TaylorSeries.jl/issues/33/comments","events_url":"https://api.github.com/repos/JuliaDiff/TaylorSeries.jl/issues/33/events","html_url":"https://github.com/JuliaDiff/TaylorSeries.jl/pull/33","id":102031746,"number":33,"title":"Solves issue #24 throwing an ErrorException; includes tests","user":{"login":"lbenet","id":5237744,"avatar_url":"https://avatars.githubusercontent.com/u/5237744?v=3","gravatar_id":"","url":"https://api.github.com/users/lbenet","html_url":"https://github.com/lbenet","followers_url":"https://api.github.com/users/lbenet/followers","following_url":"https://api.github.com/users/lbenet/following{/other_user}","gists_url":"https://api.github.com/users/lbenet/gists{/gist_id}","starred_url":"https://api.github.com/users/lbenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbenet/subscriptions","organizations_url":"https://api.github.com/users/lbenet/orgs","repos_url":"https://api.github.com/users/lbenet/repos","events_url":"https://api.github.com/users/lbenet/events{/privacy}","received_events_url":"https://api.github.com/users/lbenet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-20T00:43:54Z","updated_at":"2015-08-21T16:37:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaDiff/TaylorSeries.jl/pulls/33","html_url":"https://github.com/JuliaDiff/TaylorSeries.jl/pull/33","diff_url":"https://github.com/JuliaDiff/TaylorSeries.jl/pull/33.diff","patch_url":"https://github.com/JuliaDiff/TaylorSeries.jl/pull/33.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/JuliaDiff/TaylorSeries.jl/issues/comments/133485788","html_url":"https://github.com/JuliaDiff/TaylorSeries.jl/pull/33#issuecomment-133485788","issue_url":"https://api.github.com/repos/JuliaDiff/TaylorSeries.jl/issues/33","id":133485788,"user":{"login":"dpsanders","id":191822,"avatar_url":"https://avatars.githubusercontent.com/u/191822?v=3","gravatar_id":"","url":"https://api.github.com/users/dpsanders","html_url":"https://github.com/dpsanders","followers_url":"https://api.github.com/users/dpsanders/followers","following_url":"https://api.github.com/users/dpsanders/following{/other_user}","gists_url":"https://api.github.com/users/dpsanders/gists{/gist_id}","starred_url":"https://api.github.com/users/dpsanders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpsanders/subscriptions","organizations_url":"https://api.github.com/users/dpsanders/orgs","repos_url":"https://api.github.com/users/dpsanders/repos","events_url":"https://api.github.com/users/dpsanders/events{/privacy}","received_events_url":"https://api.github.com/users/dpsanders/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T16:37:18Z","updated_at":"2015-08-21T16:37:18Z","body":"To use `throw` you need to pick what type of exception it is: http://julia.readthedocs.org/en/latest/manual/control-flow/#exception-handling\r\n\r\nE.g. for the `sqrt`, it's either a DomainError or an ArgumentError. So something like\r\n\r\n```julia\r\nif p0 == 0\r\n    throw(ArgumentError(\"First Taylor coefficient must be non-zero for sqrt\"))\r\nend\r\n```\r\nThis is tested with\r\n```julia\r\n@fact_throws ArgumentError sqrt(0)\r\n```\r\n       \r\n\r\n"}}