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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user