Created
October 24, 2019 02:37
-
-
Save diaolizhi/5ba3971c16c71ca6335b6b8110320317 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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