From 09cbf6454d0b8f5b194aeba3e81fca1c25777af0 Mon Sep 17 00:00:00 2001 From: Mus M Date: Wed, 29 Mar 2017 14:56:04 -0400 Subject: [PATCH] Update errors.jl DOMException dep inner constructor (#65) * Update errors.jl * remove DOMException --- src/errors.jl | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/errors.jl b/src/errors.jl index c91672d..e310cc7 100644 --- a/src/errors.jl +++ b/src/errors.jl @@ -18,24 +18,3 @@ end immutable XMLTreeError{T<:AbstractString} <: XMLError msg::T end - -const dom_exception_causes = [ - "Index size error", # 1 - "DOM string size error", # 2 - "Hierarchy request error", # 3 - "Wrong document", # 4 - "Invalid character", # 5 - "No data allowed", # 6 - "No modification allowed", # 7 - "Not found", # 8 - "Not supported", # 9 - "Inused attribute" # 10 -] - - -immutable DOMException{T<:AbstractString} <: XMLError - code::Int - cause::T - - DOMException(code::Int) = new(code, dom_exception_causes[code]) -end