mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-16 01:02:06 +01:00
a14178990b
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_0@13588 b35dd754-fafc-0310-a699-88a17e54d16e
24 lines
568 B
Java
24 lines
568 B
Java
package org.jivesoftware.smack;
|
|
|
|
public enum SmackError {
|
|
NO_RESPONSE_FROM_SERVER("No response from server.");
|
|
|
|
private String message;
|
|
|
|
private SmackError(String errMessage) {
|
|
message = errMessage;
|
|
}
|
|
|
|
public String getErrorMessage() {
|
|
return message;
|
|
}
|
|
|
|
public static SmackError getErrorCode(String message) {
|
|
for (SmackError code : values()) {
|
|
if (code.message.equals(message)) {
|
|
return code;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|