diff options
author | Marvin W <git@larma.de> | 2023-01-31 15:12:39 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2023-02-07 10:50:43 +0100 |
commit | 18321ed15ce782ff5d1f24de9f2fb459d714d125 (patch) | |
tree | baf849afe826691b351110b8899701f698692eb9 /xmpp-vala/src/core/namespace_state.vala | |
parent | 95fefaff51e5506d3f0e5fe8bced14aeb3fbe037 (diff) | |
download | dino-18321ed15ce782ff5d1f24de9f2fb459d714d125.tar.gz dino-18321ed15ce782ff5d1f24de9f2fb459d714d125.zip |
Collapse most stream releated errors into IOError
Diffstat (limited to 'xmpp-vala/src/core/namespace_state.vala')
-rw-r--r-- | xmpp-vala/src/core/namespace_state.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmpp-vala/src/core/namespace_state.vala b/xmpp-vala/src/core/namespace_state.vala index fe83ad09..306b515e 100644 --- a/xmpp-vala/src/core/namespace_state.vala +++ b/xmpp-vala/src/core/namespace_state.vala @@ -52,18 +52,18 @@ public class NamespaceState { this.current_ns_uri = current_ns_uri; } - public string find_name(string ns_uri) throws XmlError { + public string find_name(string ns_uri) throws IOError { if (uri_to_name.has_key(ns_uri)) { return uri_to_name[ns_uri]; } - throw new XmlError.NS_DICT_ERROR(@"NS URI $ns_uri not found."); + throw new IOError.INVALID_DATA(@"XML: NS URI $ns_uri not found."); } - public string find_uri(string name) throws XmlError { + public string find_uri(string name) throws IOError { if (name_to_uri.has_key(name)) { return name_to_uri[name]; } - throw new XmlError.NS_DICT_ERROR(@"NS name $name not found."); + throw new IOError.INVALID_DATA(@"XML: NS name $name not found."); } public NamespaceState push() { |