mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-09 20:41:07 +01:00
[carbons] Throw SmackParsingException instead of IOException
This commit is contained in:
parent
02341f6330
commit
c1b32f8e11
2 changed files with 3 additions and 4 deletions
|
|
@ -55,8 +55,7 @@ public class CarbonManagerProvider extends ExtensionElementProvider<CarbonExtens
|
|||
done = true;
|
||||
}
|
||||
if (fwd == null) {
|
||||
// TODO: Should be SmackParseException.
|
||||
throw new IOException("sent/received must contain exactly one <forwarded> tag");
|
||||
throw new SmackParsingException("sent/received must contain exactly one <forwarded/> element");
|
||||
}
|
||||
return new CarbonExtension(dir, fwd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue