Fix 'condtions' typo in StreamError

This commit is contained in:
Florian Schmaus 2015-01-16 17:26:11 +01:00
parent 2e23a6f150
commit 313e537394
1 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,7 @@ public class StreamError extends AbstractError implements PlainStreamElement {
}
/**
* The defined stream error condtions, see RFC 6120 § 4.9.3
* The defined stream error conditions, see RFC 6120 § 4.9.3
*
*/
public enum Condition {
@ -190,7 +190,8 @@ public class StreamError extends AbstractError implements PlainStreamElement {
try {
condition = Condition.valueOf(string);
} catch (Exception e) {
throw new IllegalStateException("Could not transform string '" + string + "' to XMPPErrorConditoin", e);
throw new IllegalStateException("Could not transform string '" + string
+ "' to XMPPErrorCondition", e);
}
return condition;
}