<commit_before>
@compat abstract type XMLError <: Exception end

immutable XMLParseError{T<:AbstractString} <: XMLError
    msg::T
end

immutable XMLNoRootError <: XMLError
end

immutable XMLAttributeNotFound <: XMLError
end

immutable XMLWriteError{T<:AbstractString} <: XMLError
    msg::T
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<commit_msg>Update errors.jl DOMException  dep inner constructor  (#65)<commit_after>
@compat abstract type XMLError <: Exception end

immutable XMLParseError{T<:AbstractString} <: XMLError
    msg::T
end

immutable XMLNoRootError <: XMLError
end

immutable XMLAttributeNotFound <: XMLError
end

immutable XMLWriteError{T<:AbstractString} <: XMLError
    msg::T
end

immutable XMLTreeError{T<:AbstractString} <: XMLError
    msg::T
end
{'fraction_non_alphanumeric': 0.09925925925925926, 'fraction_numerical': 0.00962962962962963, 'mean_word_length': 3.4295081967213115, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4388484', 'n_tokens_mistral': 461, 'n_tokens_neox': 463, 'n_words': 112}