Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Stop the subscription to message notifications #64

Conversation

SidathWeerasinghe
Copy link
Member

No description provided.

transaction.commit();

} catch (Exception e) {
e.printStackTrace();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rollback if exception and print the ,or rethrow

Copy link

@Nuwan-Walisundara Nuwan-Walisundara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor message signature so that no signatere having lenthy parameters accepting ,use dtos insted


} catch (Exception e) {
transaction.rollback();
throw new Exception("Error occurred when saving subscribe SMS request.");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

send the same exception, dont create new one, log the error to logger

@Nuwan-Walisundara Nuwan-Walisundara merged commit ab0de42 into WSO2Telco:feature_ussd_sms Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants