Skip to content

Commit

Permalink
Update errors.jl DOMException dep inner constructor (#65)
Browse files Browse the repository at this point in the history
* Update errors.jl

* remove DOMException
  • Loading branch information
musm authored and tkelman committed Mar 29, 2017
1 parent b516466 commit 09cbf64
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/errors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 09cbf64

Please sign in to comment.