1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2026-08-21 21:32:58 +00:00

Add exception class for errors. Set error strings as a Android resource (for localization)

This commit is contained in:
Loïc Blot (@U-Exp)
2014-10-14 20:30:03 +02:00
parent 1328ebf4f3
commit 74c62e7f52
2 changed files with 35 additions and 0 deletions
@@ -0,0 +1,18 @@
package fr.unix_experience.owncloud_sms.exceptions;
public class OCSyncException extends Exception {
/**
* Serial, generated by Eclipse to be compliant with JAVA
*/
private static final long serialVersionUID = -4277316598892180792L;
public OCSyncException(int errorId) {
_errorId = errorId;
}
public int getErrorId() {
return _errorId;
}
private int _errorId;
}