-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: thadumi <th.theodor.th@gmail.com>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...ming_contract/interceptor_methods_for_lifecycle_event_callbacks/exceptions.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//// | ||
******************************************************************* | ||
* Copyright (c) 2019 Eclipse Foundation | ||
* | ||
* This specification document is made available under the terms | ||
* of the Eclipse Foundation Specification License v1.0, which is | ||
* available at https://www.eclipse.org/legal/efsl.php. | ||
******************************************************************* | ||
//// | ||
|
||
[[exceptions_life_cicle_event_callbacks]] | ||
== Exceptions | ||
|
||
When invoked to interpose on lifecycle | ||
events, lifecycle callback interceptor methods may throw runtime | ||
exceptions, but—except for around-construct methods—may not throw | ||
checked exceptions. | ||
|
||
In addition to the rules specified in section | ||
link:intercept.html#a75[See Exceptions], the following rules | ||
apply to the lifecycle callback interceptor methods: | ||
|
||
A lifecycle callback interceptor method | ||
declared in an interceptor class or in a superclass of an interceptor | ||
class may catch an exception thrown by another lifecycle callback | ||
interceptor method in the invocation chain, and clean up before | ||
returning. | ||
|
||
Pre-destroy interceptor methods are not | ||
invoked when the target instance and the interceptors are discarded as a | ||
result of such exceptions: the lifecycle callback interceptor methods in | ||
the chain should perform any necessary clean-up operations as the | ||
interceptor chain unwinds. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,3 +148,4 @@ ShoppingCart \{ | |
|
||
} | ||
|
||
include::exceptions.adoc[] |