Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abappm/abap-error
General Purpose Exception Class
https://github.com/abappm/abap-error
abap apm error exception sap
Last synced: 13 days ago
JSON representation
General Purpose Exception Class
- Host: GitHub
- URL: https://github.com/abappm/abap-error
- Owner: abapPM
- License: mit
- Created: 2024-07-03T15:39:44.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-30T21:04:21.000Z (22 days ago)
- Last Synced: 2025-02-04T23:35:46.053Z (17 days ago)
- Topics: abap, apm, error, exception, sap
- Language: ABAP
- Homepage: https://abappm.com
- Size: 57.6 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/abapPM/ABAP-Error/blob/main/LICENSE)
[](https://github.com/abapPM/.github/blob/main/CODE_OF_CONDUCT.md)
[](https://api.reuse.software/info/github.com/abapPM/ABAP-Error)# Error
General purpose exception.
NO WARRANTIES, [MIT License](https://github.com/abapPM/ABAP-Error/blob/main/LICENSE)
## Usage
Raise exception with free form text:
```abap
zcx_error=>raise( 'Not found' ).
```Raise exception with reference to another exception:
```abap
TRY.
"... some code that raises an exception
CATCH cx_root INTO DATA(error).
zcx_error=>raise_with_text( error ).
" or
zcx_error=>raise(
text = 'Overwrite error text'
previous = error ).
ENDTRY.
```Raise exception with T100 system message:
```abap
MESSAGE e001(00) WITH 'error value' 'more text' INTO zcx_error=>null. " or any other message
zcx_error=>raise_t100( ).
```## Prerequisites
SAP Basis 7.50 or higher
## Installation
Install `error` as a global module in your system using [apm](https://abappm.com).
or
Specify the `error` module as a dependency in your project and import it to your namespace using [apm](https://abappm.com).
## Contributions
All contributions are welcome! Read our [Contribution Guidelines](https://github.com/abapPM/ABAP-Error/blob/main/CONTRIBUTING.md), fork this repo, and create a pull request.
You can install the developer version of ABAP Error using [abapGit](https://github.com/abapGit/abapGit) either by creating a new online repository for `https://github.com/abapPM/ABAP-Error`.
Recommended SAP package: `$ERROR`
## About
Made with ❤ in Canada
Copyright 2025 apm.to Inc.
Follow [@marcf.be](https://bsky.app/profile/marcf.be) on Blueksy and [@marcfbe](https://linkedin.com/in/marcfbe) or LinkedIn