Recreate this exception as the CameraAccessException equivalent.
CameraAccessException e;
if (mMessage != null && mCause != null) {
e = new CameraAccessException(mReason, mMessage, mCause);
} else if (mMessage != null) {
e = new CameraAccessException(mReason, mMessage);
} else if (mCause != null) {
e = new CameraAccessException(mReason, mCause);
} else {
e = new CameraAccessException(mReason);
}
// throw and catch, so java has a chance to fill out the stack trace
e.setStackTrace(this.getStackTrace());
return e;