You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the exception is thrown with operation name the original errorMessage is lost.
For example
throw new CfnGeneralServiceException("Operation", new RuntimeException("something happend");
results in "Error occurred during operation 'Operation'." message.
If operation parameter would not be passed
throw new CfnGeneralServiceException(new RuntimeException("something happend")
then the message would contain "something happend".
There are existing implementation's of resources that rethrow exceptions with operation field set, and the original message is thrown. What is more - if any exception will be unhandled explicitly CfnInternalFailureException will be thrown without errorMessage from the original exception and CloudFormation console will just display "Internal failure... " kind of message
The text was updated successfully, but these errors were encountered:
When the exception is thrown with operation name the original errorMessage is lost.
For example
results in
"Error occurred during operation 'Operation'."
message.If operation parameter would not be passed
then the message would contain
"something happend"
.There are existing implementation's of resources that rethrow exceptions with operation field set, and the original message is thrown. What is more - if any exception will be unhandled explicitly
CfnInternalFailureException
will be thrown without errorMessage from the original exception and CloudFormation console will just display "Internal failure... " kind of messageThe text was updated successfully, but these errors were encountered: