18 lines
397 B
Java
18 lines
397 B
Java
package com.otaliastudios.cameraview;
|
|
public class CameraException extends RuntimeException {
|
|
private int reason = 0;
|
|
|
|
public CameraException(int i) {
|
|
this.reason = i;
|
|
}
|
|
|
|
public CameraException(Throwable th, int i) {
|
|
super(th);
|
|
this.reason = i;
|
|
}
|
|
|
|
public boolean a() {
|
|
int i = this.reason;
|
|
return i == 1 || i == 2 || i == 3;
|
|
}
|
|
}
|