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

modern style exception raise #566

Merged
merged 1 commit into from Oct 19, 2018
Merged

Conversation

AtomKrieg
Copy link
Contributor

@AtomKrieg AtomKrieg commented Oct 19, 2018

Text exception

Before

RAISE EXCEPTION TYPE zcx_excel	      
  EXPORTING	
    error = lv_errormessage.

After

zcx_excel=>raise_text( lv_errormessage ).

Sy-msg exception

Before

MESSAGE e800(zabap2xlsx) INTO lv_errormessage.
RAISE EXCEPTION TYPE zcx_excel
  EXPORTING
    syst_at_raise = syst.

After

MESSAGE e800(zabap2xlsx) INTO lv_errormessage.
zcx_excel=>raise_symsg( ).

Copy link
Collaborator

@ivanfemia ivanfemia left a comment

Choose a reason for hiding this comment

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

Thank you!

@ivanfemia ivanfemia merged commit 3c578c4 into abap2xlsx:master Oct 19, 2018
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.

None yet

2 participants