Skip to content

Instantly share code, notes, and snippets.

@diaolizhi
Created October 24, 2019 02:37
Show Gist options
  • Save diaolizhi/5ba3971c16c71ca6335b6b8110320317 to your computer and use it in GitHub Desktop.
Save diaolizhi/5ba3971c16c71ca6335b6b8110320317 to your computer and use it in GitHub Desktop.
try {
DB::beginTransaction();
DB::commit();
} catch (Exception $e) {
Log::error($e->getMessage());
DB::rollBack();
throw new ExceptionBiz($e->getMessage());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment