File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 22namespace EventStudyTools \ApiWrapper ;
33
44use EventStudyTools \ApiWrapper \ApplicationInput \ApplicationInputInterface ;
5+ use EventStudyTools \ApiWrapper \Exception \ApiSemanticException ;
56
67class ApiWrapper
78{
@@ -308,9 +309,9 @@ public function processTask()
308309 $ result = json_decode ($ result );
309310
310311 if (isset ($ result ->error )) {
311- throw new \ Exception ($ result ->error );
312+ throw new ApiSemanticException ($ result ->error );
312313 } else {
313- throw new \ Exception ('Application launch error ' );
314+ throw new ApiSemanticException ('Application launch error ' );
314315 }
315316 }
316317
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace EventStudyTools \ApiWrapper \Exception ;
4+
5+
6+ class ApiSemanticException extends \Exception
7+ {
8+
9+ }
You can’t perform that action at this time.
0 commit comments