diff --git a/package.json b/package.json
index bcdf263fe..9b711d853 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"url": "git+https://github.com/larshp/abapGit.git"
},
"devDependencies": {
- "abapmerge": "^0.7.0",
+ "abapmerge": "^0.7.1",
"abaplint": ">=0.26.7"
}
}
diff --git a/src/utils/zcl_abapgit_time.clas.abap b/src/utils/zcl_abapgit_time.clas.abap
new file mode 100644
index 000000000..8c21aa0ae
--- /dev/null
+++ b/src/utils/zcl_abapgit_time.clas.abap
@@ -0,0 +1,65 @@
+CLASS zcl_abapgit_time DEFINITION
+ PUBLIC
+ CREATE PUBLIC .
+
+ PUBLIC SECTION.
+ TYPES: ty_unixtime TYPE c LENGTH 16.
+
+ CLASS-METHODS get
+ RETURNING VALUE(rv_time) TYPE ty_unixtime
+ RAISING zcx_abapgit_exception.
+ PRIVATE SECTION.
+ CONSTANTS: c_epoch TYPE datum VALUE '19700101'.
+
+ENDCLASS.
+
+
+
+CLASS ZCL_ABAPGIT_TIME IMPLEMENTATION.
+
+
+ METHOD get.
+
+ DATA: lv_i TYPE i,
+ lv_tz TYPE tznzone,
+ lv_utcdiff TYPE tznutcdiff,
+ lv_utcsign TYPE tznutcsign.
+
+
+ lv_i = sy-datum - c_epoch.
+ lv_i = lv_i * 86400.
+ lv_i = lv_i + sy-uzeit.
+
+ CALL FUNCTION 'TZON_GET_OS_TIMEZONE'
+ IMPORTING
+ ef_timezone = lv_tz.
+
+ CALL FUNCTION 'TZON_GET_OFFSET'
+ EXPORTING
+ if_timezone = lv_tz
+ if_local_date = sy-datum
+ if_local_time = sy-uzeit
+ IMPORTING
+ ef_utcdiff = lv_utcdiff
+ ef_utcsign = lv_utcsign
+ EXCEPTIONS
+ conversion_error = 1
+ OTHERS = 2.
+ IF sy-subrc <> 0.
+ zcx_abapgit_exception=>raise( 'Timezone error' ).
+ ENDIF.
+
+ CASE lv_utcsign.
+ WHEN '+'.
+ lv_i = lv_i - lv_utcdiff.
+ WHEN '-'.
+ lv_i = lv_i + lv_utcdiff.
+ ENDCASE.
+
+ rv_time = lv_i.
+ CONDENSE rv_time.
+ rv_time+11 = lv_utcsign.
+ rv_time+12 = lv_utcdiff.
+
+ ENDMETHOD. "get
+ENDCLASS.
diff --git a/src/utils/zcl_abapgit_time.clas.xml b/src/utils/zcl_abapgit_time.clas.xml
new file mode 100644
index 000000000..8e1c6b724
--- /dev/null
+++ b/src/utils/zcl_abapgit_time.clas.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ ZCL_ABAPGIT_TIME
+ 1
+ E
+ Time
+ 2
+ 1
+ X
+ X
+ X
+
+
+
+
diff --git a/src/zabapgit_2fa.prog.abap b/src/zabapgit_2fa.prog.abap
index 58b7bcf2a..b7c0a38e3 100644
--- a/src/zabapgit_2fa.prog.abap
+++ b/src/zabapgit_2fa.prog.abap
@@ -657,11 +657,11 @@ CLASS lcl_2fa_auth_registry DEFINITION
"! @parameter cv_username | Username
"! @parameter cv_password | Password, will be replaced by an access token if two factor
"! authentication succeeds
- "! @raising lcx_exception | Error in two factor authentication
+ "! @raising zcx_abapgit_exception | Error in two factor authentication
use_2fa_if_required IMPORTING iv_url TYPE string
CHANGING cv_username TYPE string
cv_password TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-DATA:
"! All authenticators managed by the registry
gt_registered_authenticators TYPE HASHED TABLE OF REF TO lif_2fa_authenticator
@@ -670,7 +670,7 @@ CLASS lcl_2fa_auth_registry DEFINITION
CLASS-METHODS:
popup_token
RETURNING VALUE(rv_token) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS lcl_2fa_auth_registry IMPLEMENTATION.
@@ -754,10 +754,7 @@ CLASS lcl_2fa_auth_registry IMPLEMENTATION.
CATCH lcx_2fa_illegal_state ##NO_HANDLER.
ENDTRY.
- RAISE EXCEPTION TYPE lcx_exception
- EXPORTING
- iv_text = |2FA error: { lx_ex->get_text( ) }|
- ix_previous = lx_ex.
+ zcx_abapgit_exception=>raise( |2FA error: { lx_ex->get_text( ) }| ).
ENDTRY.
ENDMETHOD.
@@ -786,11 +783,11 @@ CLASS lcl_2fa_auth_registry IMPLEMENTATION.
error_in_fields = 1
OTHERS = 2. "#EC NOTEXT
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from POPUP_GET_VALUES' ).
+ zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_returncode = 'A'.
- lcx_exception=>raise( 'Authentication cancelled' ).
+ zcx_abapgit_exception=>raise( 'Authentication cancelled' ).
ENDIF.
READ TABLE lt_fields INDEX 1 ASSIGNING .
diff --git a/src/zabapgit_app.prog.abap b/src/zabapgit_app.prog.abap
index cdfcd79fc..303a501b7 100644
--- a/src/zabapgit_app.prog.abap
+++ b/src/zabapgit_app.prog.abap
@@ -16,12 +16,12 @@ CLASS lcl_app DEFINITION FINAL.
CLASS-METHODS gui
RETURNING VALUE(ro_gui) TYPE REF TO lcl_gui
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS user
IMPORTING iv_user TYPE xubname DEFAULT sy-uname
RETURNING VALUE(ro_user) TYPE REF TO lcl_persistence_user
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS repo_srv
RETURNING VALUE(ro_repo_srv) TYPE REF TO lcl_repo_srv.
diff --git a/src/zabapgit_background.prog.abap b/src/zabapgit_background.prog.abap
index 545e4a5c1..090e2cfd5 100644
--- a/src/zabapgit_background.prog.abap
+++ b/src/zabapgit_background.prog.abap
@@ -7,7 +7,7 @@ CLASS lcl_background DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS:
run
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS:
@@ -17,14 +17,14 @@ CLASS lcl_background DEFINITION FINAL.
push
IMPORTING io_repo TYPE REF TO lcl_repo_online
is_settings TYPE lcl_persist_background=>ty_background
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
push_fixed
IMPORTING io_repo TYPE REF TO lcl_repo_online
is_settings TYPE lcl_persist_background=>ty_background
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
push_auto
IMPORTING io_repo TYPE REF TO lcl_repo_online
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -44,7 +44,7 @@ CLASS lcl_background IMPLEMENTATION.
WHEN lcl_persist_background=>c_amethod-auto.
push_auto( io_repo ).
WHEN OTHERS.
- lcx_exception=>raise( 'unknown push method' ).
+ zcx_abapgit_exception=>raise( 'unknown push method' ).
ENDCASE.
ENDMETHOD.
@@ -233,7 +233,7 @@ CLASS lcl_background IMPLEMENTATION.
push( io_repo = lo_repo
is_settings = ).
WHEN OTHERS.
- lcx_exception=>raise( 'background, unknown mode' ).
+ zcx_abapgit_exception=>raise( 'background, unknown mode' ).
ENDCASE.
ENDLOOP.
diff --git a/src/zabapgit_definitions.prog.abap b/src/zabapgit_definitions.prog.abap
index 90abd5bdf..987b7dd36 100644
--- a/src/zabapgit_definitions.prog.abap
+++ b/src/zabapgit_definitions.prog.abap
@@ -214,6 +214,7 @@ INTERFACE lif_defs.
repo_refresh_checksums TYPE string VALUE 'repo_refresh_checksums',
repo_toggle_fav TYPE string VALUE 'repo_toggle_fav',
repo_transport_to_branch TYPE string VALUE 'repo_transport_to_branch',
+ repo_syntax_check TYPE string VALUE 'repo_syntax_check',
abapgit_home TYPE string VALUE 'abapgit_home',
abapgit_wiki TYPE string VALUE 'abapgit_wiki',
diff --git a/src/zabapgit_dot_abapgit.prog.abap b/src/zabapgit_dot_abapgit.prog.abap
index a56aeae0b..d43f188d2 100644
--- a/src/zabapgit_dot_abapgit.prog.abap
+++ b/src/zabapgit_dot_abapgit.prog.abap
@@ -32,14 +32,14 @@ CLASS lcl_dot_abapgit DEFINITION FINAL FRIENDS ltcl_dot_abapgit.
deserialize
IMPORTING iv_xstr TYPE xstring
RETURNING VALUE(ro_dot_abapgit) TYPE REF TO lcl_dot_abapgit
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS:
constructor
IMPORTING is_data TYPE ty_dot_abapgit,
serialize
RETURNING VALUE(rv_xstr) TYPE xstring
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_data
RETURNING VALUE(rs_data) TYPE ty_dot_abapgit,
add_ignore
@@ -66,7 +66,7 @@ CLASS lcl_dot_abapgit DEFINITION FINAL FRIENDS ltcl_dot_abapgit.
* IMPORTING iv_language TYPE spras,
get_signature
RETURNING VALUE(rs_signature) TYPE lif_defs=>ty_file_signature
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
DATA: ms_data TYPE ty_dot_abapgit.
@@ -75,7 +75,7 @@ CLASS lcl_dot_abapgit DEFINITION FINAL FRIENDS ltcl_dot_abapgit.
to_xml
IMPORTING is_data TYPE ty_dot_abapgit
RETURNING VALUE(rv_xml) TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
from_xml
IMPORTING iv_xml TYPE string
RETURNING VALUE(rs_data) TYPE ty_dot_abapgit.
diff --git a/src/zabapgit_exceptions.prog.abap b/src/zabapgit_exceptions.prog.abap
index 8302f029e..1264bf705 100644
--- a/src/zabapgit_exceptions.prog.abap
+++ b/src/zabapgit_exceptions.prog.abap
@@ -2,45 +2,6 @@
*& Include ZABAPGIT_EXCEPTIONS
*&---------------------------------------------------------------------*
-*----------------------------------------------------------------------*
-* CLASS LCX_EXCEPTION DEFINITION
-*----------------------------------------------------------------------*
-CLASS lcx_exception DEFINITION INHERITING FROM cx_static_check FINAL.
-
- PUBLIC SECTION.
- DATA mv_text TYPE string.
-
- METHODS constructor
- IMPORTING iv_text TYPE string
- ix_previous TYPE REF TO cx_root OPTIONAL.
-
- CLASS-METHODS: raise IMPORTING iv_text TYPE clike
- RAISING lcx_exception.
-
- PRIVATE SECTION.
- DATA mx_previous TYPE REF TO cx_root.
-
-ENDCLASS. "CX_LOCAL_EXCEPTION DEFINITION
-
-*----------------------------------------------------------------------*
-* CLASS LCX_EXCEPTION IMPLEMENTATION
-*----------------------------------------------------------------------*
-CLASS lcx_exception IMPLEMENTATION.
-
- METHOD constructor.
- super->constructor( ).
- mv_text = iv_text.
- mx_previous = previous.
- ENDMETHOD. "CONSTRUCTOR
-
- METHOD raise.
- RAISE EXCEPTION TYPE lcx_exception
- EXPORTING
- iv_text = iv_text.
- ENDMETHOD.
-
-ENDCLASS. "lcx_exception IMPLEMENTATION
-
*----------------------------------------------------------------------*
* CLASS LCX_NOT_FOUND DEFINITION
*----------------------------------------------------------------------*
diff --git a/src/zabapgit_file_status.prog.abap b/src/zabapgit_file_status.prog.abap
index 827bf21ba..dcf759ab8 100644
--- a/src/zabapgit_file_status.prog.abap
+++ b/src/zabapgit_file_status.prog.abap
@@ -17,7 +17,7 @@ CLASS lcl_file_status DEFINITION FINAL
IMPORTING io_repo TYPE REF TO lcl_repo
io_log TYPE REF TO lcl_log OPTIONAL
RETURNING VALUE(rt_results) TYPE lif_defs=>ty_results_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
@@ -28,13 +28,13 @@ CLASS lcl_file_status DEFINITION FINAL
it_remote TYPE lif_defs=>ty_files_tt
it_cur_state TYPE lif_defs=>ty_file_signatures_tt
RETURNING VALUE(rt_results) TYPE lif_defs=>ty_results_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
run_checks
IMPORTING io_log TYPE REF TO lcl_log
it_results TYPE lif_defs=>ty_results_tt
io_dot TYPE REF TO lcl_dot_abapgit
iv_top TYPE devclass
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
build_existing
IMPORTING is_local TYPE lif_defs=>ty_file_item
is_remote TYPE lif_defs=>ty_file
diff --git a/src/zabapgit_folder_logic.prog.abap b/src/zabapgit_folder_logic.prog.abap
index d0fc5516b..24a9a42d3 100644
--- a/src/zabapgit_folder_logic.prog.abap
+++ b/src/zabapgit_folder_logic.prog.abap
@@ -13,7 +13,7 @@ CLASS lcl_folder_logic DEFINITION.
iv_package TYPE devclass
RETURNING
VALUE(rv_path) TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
path_to_package
IMPORTING
iv_top TYPE devclass
@@ -22,7 +22,7 @@ CLASS lcl_folder_logic DEFINITION.
RETURNING
VALUE(rv_package) TYPE devclass
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
ENDCLASS.
@@ -38,7 +38,7 @@ CLASS lcl_folder_logic IMPLEMENTATION.
lv_length = strlen( io_dot->get_starting_folder( ) ).
IF lv_length > strlen( iv_path ).
- lcx_exception=>raise( 'unexpected folder structure' ).
+ zcx_abapgit_exception=>raise( 'unexpected folder structure' ).
ENDIF.
lv_path = iv_path+lv_length.
lv_parent = iv_top.
@@ -86,7 +86,7 @@ CLASS lcl_folder_logic IMPLEMENTATION.
lv_parentcl = lcl_sap_package=>get( iv_package )->read_parent( ).
IF lv_parentcl IS INITIAL.
- lcx_exception=>raise( |error, expected parent package, { iv_package }| ).
+ zcx_abapgit_exception=>raise( |error, expected parent package, { iv_package }| ).
ELSE.
CASE io_dot->get_folder_logic( ).
WHEN lcl_dot_abapgit=>c_folder_logic-full.
@@ -102,7 +102,7 @@ CLASS lcl_folder_logic IMPLEMENTATION.
* ZZZ_something. This will define the folder name in the zip file to be "something",
* similarily with online projects. Alternatively change to FULL folder logic
lv_message = 'PREFIX: Unexpected package naming(' && iv_package && ')' ##no_text.
- lcx_exception=>raise( lv_message ).
+ zcx_abapgit_exception=>raise( lv_message ).
ENDIF.
WHEN OTHERS.
ASSERT 0 = 1.
@@ -110,7 +110,7 @@ CLASS lcl_folder_logic IMPLEMENTATION.
lv_path = iv_package+lv_len.
IF strlen( lv_path ) = 0.
- lcx_exception=>raise( 'Folder logic: length = 0' ).
+ zcx_abapgit_exception=>raise( 'Folder logic: length = 0' ).
ENDIF.
IF lv_path(1) = '_'.
@@ -143,7 +143,7 @@ CLASS ltcl_folder_logic_helper DEFINITION FOR TESTING FINAL.
iv_logic TYPE string
iv_package TYPE devclass
iv_path TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -194,11 +194,11 @@ CLASS ltcl_folder_logic DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHOR
METHODS:
setup,
teardown,
- prefix1 FOR TESTING RAISING lcx_exception,
- prefix2 FOR TESTING RAISING lcx_exception,
- prefix_error1 FOR TESTING RAISING lcx_exception,
- full1 FOR TESTING RAISING lcx_exception,
- full2 FOR TESTING RAISING lcx_exception.
+ prefix1 FOR TESTING RAISING zcx_abapgit_exception,
+ prefix2 FOR TESTING RAISING zcx_abapgit_exception,
+ prefix_error1 FOR TESTING RAISING zcx_abapgit_exception,
+ full1 FOR TESTING RAISING zcx_abapgit_exception,
+ full2 FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS. "ltcl_convert DEFINITION
@@ -274,7 +274,7 @@ CLASS ltcl_folder_logic IMPLEMENTATION.
iv_package = '$FOOBAR'
iv_path = '/src/' ).
cl_abap_unit_assert=>fail( 'Error expected' ).
- CATCH lcx_exception ##NO_HANDLER.
+ CATCH zcx_abapgit_exception ##NO_HANDLER.
ENDTRY.
ENDMETHOD.
@@ -310,10 +310,10 @@ CLASS ltcl_folder_logic_namespaces DEFINITION FOR TESTING RISK LEVEL HARMLESS DU
METHODS:
setup,
teardown,
- prefix1 FOR TESTING RAISING lcx_exception,
- prefix2 FOR TESTING RAISING lcx_exception,
- full1 FOR TESTING RAISING lcx_exception,
- full2 FOR TESTING RAISING lcx_exception.
+ prefix1 FOR TESTING RAISING zcx_abapgit_exception,
+ prefix2 FOR TESTING RAISING zcx_abapgit_exception,
+ full1 FOR TESTING RAISING zcx_abapgit_exception,
+ full2 FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS. "ltcl_convert DEFINITION
diff --git a/src/zabapgit_forms.prog.abap b/src/zabapgit_forms.prog.abap
index 3cae67f9c..9d99211f5 100644
--- a/src/zabapgit_forms.prog.abap
+++ b/src/zabapgit_forms.prog.abap
@@ -7,7 +7,7 @@
*&---------------------------------------------------------------------*
FORM run.
- DATA: lx_exception TYPE REF TO lcx_exception,
+ DATA: lx_exception TYPE REF TO zcx_abapgit_exception,
lv_ind TYPE t000-ccnocliind.
@@ -23,13 +23,13 @@ FORM run.
TRY.
lcl_migrations=>run( ).
PERFORM open_gui.
- CATCH lcx_exception INTO lx_exception.
- MESSAGE lx_exception->mv_text TYPE 'E'.
+ CATCH zcx_abapgit_exception INTO lx_exception.
+ MESSAGE lx_exception->text TYPE 'E'.
ENDTRY.
ENDFORM. "run
-FORM open_gui RAISING lcx_exception.
+FORM open_gui RAISING zcx_abapgit_exception.
IF sy-batch = abap_true.
lcl_background=>run( ).
@@ -50,7 +50,7 @@ ENDFORM.
* -->CS_ERROR text
* -->CV_SHOW_POPUP text
* -->RAISING text
-* -->LCX_EXCEPTION text
+* -->zcx_abapgit_exception text
* -->##CALLED text
* -->##NEEDED text
*----------------------------------------------------------------------*
@@ -58,11 +58,11 @@ FORM branch_popup TABLES tt_fields TYPE lif_defs=>ty_sval_tt
USING pv_code TYPE clike
CHANGING cs_error TYPE svale
cv_show_popup TYPE c
- RAISING lcx_exception ##called ##needed.
+ RAISING zcx_abapgit_exception ##called ##needed.
* called dynamically from function module POPUP_GET_VALUES_USER_BUTTONS
DATA: lv_url TYPE string,
- lx_error TYPE REF TO lcx_exception,
+ lx_error TYPE REF TO zcx_abapgit_exception,
ls_package_data TYPE scompkdtln,
ls_branch TYPE lcl_git_branch_list=>ty_git_branch,
lv_create TYPE boolean.
@@ -85,7 +85,7 @@ FORM branch_popup TABLES tt_fields TYPE lif_defs=>ty_sval_tt
TRY.
ls_branch = lcl_popups=>branch_list_popup( lv_url ).
- CATCH lcx_exception INTO lx_error.
+ CATCH zcx_abapgit_exception INTO lx_error.
MESSAGE lx_error TYPE 'S' DISPLAY LIKE 'E'.
RETURN.
ENDTRY.
@@ -120,7 +120,7 @@ FORM package_popup TABLES tt_fields TYPE lif_defs=>ty_sval_tt
USING pv_code TYPE clike
CHANGING cs_error TYPE svale
cv_show_popup TYPE c
- RAISING lcx_exception ##called ##needed.
+ RAISING zcx_abapgit_exception ##called ##needed.
* called dynamically from function module POPUP_GET_VALUES_USER_BUTTONS
DATA: ls_package_data TYPE scompkdtln,
@@ -161,7 +161,7 @@ FORM output.
p_exclude = lt_ucomm.
ENDFORM.
-FORM exit RAISING lcx_exception.
+FORM exit RAISING zcx_abapgit_exception.
CASE sy-ucomm.
WHEN 'CBAC'. "Back
IF lcl_app=>gui( )->back( ) IS INITIAL.
diff --git a/src/zabapgit_git.prog.abap b/src/zabapgit_git.prog.abap
index 448defdff..39bd4aab9 100644
--- a/src/zabapgit_git.prog.abap
+++ b/src/zabapgit_git.prog.abap
@@ -18,7 +18,7 @@ CLASS lcl_git_transport DEFINITION FINAL.
it_branches TYPE lcl_git_branch_list=>ty_git_branch_list_tt OPTIONAL
EXPORTING et_objects TYPE lif_defs=>ty_objects_tt
ev_branch TYPE lif_defs=>ty_sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
* local to remote
CLASS-METHODS receive_pack
@@ -27,12 +27,12 @@ CLASS lcl_git_transport DEFINITION FINAL.
iv_new TYPE lif_defs=>ty_sha1
iv_branch_name TYPE string
iv_pack TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS branches
IMPORTING iv_url TYPE string
RETURNING VALUE(ro_branch_list) TYPE REF TO lcl_git_branch_list
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CONSTANTS: BEGIN OF c_service,
@@ -45,7 +45,7 @@ CLASS lcl_git_transport DEFINITION FINAL.
iv_service TYPE string
EXPORTING eo_client TYPE REF TO lcl_http_client
eo_branch_list TYPE REF TO lcl_git_branch_list
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS find_branch
IMPORTING iv_url TYPE string
@@ -53,12 +53,12 @@ CLASS lcl_git_transport DEFINITION FINAL.
iv_branch_name TYPE string
EXPORTING eo_client TYPE REF TO lcl_http_client
ev_branch TYPE lif_defs=>ty_sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS parse
EXPORTING ev_pack TYPE xstring
CHANGING cv_data TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_transport DEFINITION
@@ -89,22 +89,22 @@ CLASS lcl_git_pack DEFINITION FINAL FRIENDS ltcl_git_pack.
CLASS-METHODS decode
IMPORTING iv_data TYPE xstring
RETURNING VALUE(rt_objects) TYPE lif_defs=>ty_objects_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS decode_tree
IMPORTING iv_data TYPE xstring
RETURNING VALUE(rt_nodes) TYPE ty_nodes_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS decode_commit
IMPORTING iv_data TYPE xstring
RETURNING VALUE(rs_commit) TYPE ty_commit
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS encode
IMPORTING it_objects TYPE lif_defs=>ty_objects_tt
RETURNING VALUE(rv_data) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS encode_tree
IMPORTING it_nodes TYPE ty_nodes_tt
@@ -118,7 +118,7 @@ CLASS lcl_git_pack DEFINITION FINAL FRIENDS ltcl_git_pack.
IMPORTING iv_type TYPE lif_defs=>ty_type
iv_length TYPE i
RETURNING VALUE(rv_xstring) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CONSTANTS: c_pack_start TYPE x LENGTH 4 VALUE '5041434B', " PACK
@@ -128,12 +128,12 @@ CLASS lcl_git_pack DEFINITION FINAL FRIENDS ltcl_git_pack.
CLASS-METHODS decode_deltas
CHANGING ct_objects TYPE lif_defs=>ty_objects_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS delta
IMPORTING is_object TYPE lif_defs=>ty_object
CHANGING ct_objects TYPE lif_defs=>ty_objects_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS delta_header
EXPORTING ev_header TYPE i
@@ -146,7 +146,7 @@ CLASS lcl_git_pack DEFINITION FINAL FRIENDS ltcl_git_pack.
CLASS-METHODS get_type
IMPORTING iv_x TYPE x
RETURNING VALUE(rv_type) TYPE lif_defs=>ty_type
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS get_length
EXPORTING ev_length TYPE i
@@ -155,7 +155,7 @@ CLASS lcl_git_pack DEFINITION FINAL FRIENDS ltcl_git_pack.
CLASS-METHODS zlib_decompress
CHANGING cv_data TYPE xstring
cv_decompressed TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_pack DEFINITION
@@ -264,11 +264,11 @@ CLASS lcl_git_transport IMPLEMENTATION.
lv_string = lcl_convert=>xstring_to_string_utf8( lv_xstring ).
IF NOT lv_string CP '*unpack ok*'.
- lcx_exception=>raise( 'unpack not ok' ).
+ zcx_abapgit_exception=>raise( 'unpack not ok' ).
ELSEIF lv_string CP '*pre-receive hook declined*'.
- lcx_exception=>raise( 'pre-receive hook declined' ).
+ zcx_abapgit_exception=>raise( 'pre-receive hook declined' ).
ELSEIF lv_string CP '*funny refname*'.
- lcx_exception=>raise( 'funny refname' ).
+ zcx_abapgit_exception=>raise( 'funny refname' ).
ENDIF.
ENDMETHOD. "receive_pack
@@ -286,7 +286,7 @@ CLASS lcl_git_transport IMPLEMENTATION.
lv_len = lcl_git_utils=>length_utf8_hex( cv_data ).
IF lv_len > xstrlen( cv_data ).
- lcx_exception=>raise( 'parse, string length too large' ).
+ zcx_abapgit_exception=>raise( 'parse, string length too large' ).
ENDIF.
lv_contents = cv_data(lv_len).
@@ -372,7 +372,7 @@ CLASS lcl_git_transport IMPLEMENTATION.
CHANGING cv_data = lv_xstring ).
IF lv_pack IS INITIAL.
- lcx_exception=>raise( 'empty pack' ).
+ zcx_abapgit_exception=>raise( 'empty pack' ).
ENDIF.
et_objects = lcl_git_pack=>decode( lv_pack ).
@@ -441,7 +441,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
WHEN lif_defs=>gc_type-ref_d.
lv_type = '111'.
WHEN OTHERS.
- lcx_exception=>raise( 'Unexpected object type while encoding pack' ).
+ zcx_abapgit_exception=>raise( 'Unexpected object type while encoding pack' ).
ENDCASE.
lv_x4 = iv_length.
@@ -466,7 +466,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
CONCATENATE lv_result '0' lv_bits+7(7) INTO lv_result.
ELSE.
* this IF can be refactored, use shifting?
- lcx_exception=>raise( 'Todo, encoding length' ).
+ zcx_abapgit_exception=>raise( 'Todo, encoding length' ).
ENDIF.
* convert bit string to xstring
@@ -603,7 +603,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
WHEN '111'.
rv_type = lif_defs=>gc_type-ref_d.
WHEN OTHERS.
- lcx_exception=>raise( 'Todo, unknown type' ).
+ zcx_abapgit_exception=>raise( 'Todo, unknown type' ).
ENDCASE.
ENDMETHOD. "get_type
@@ -663,7 +663,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
IF rs_commit-author IS INITIAL
OR rs_commit-committer IS INITIAL
OR rs_commit-tree IS INITIAL.
- lcx_exception=>raise( 'multiple parents? not supported' ).
+ zcx_abapgit_exception=>raise( 'multiple parents? not supported' ).
ENDIF.
ENDMETHOD. "decode_commit
@@ -714,10 +714,10 @@ CLASS lcl_git_pack IMPLEMENTATION.
* find base
READ TABLE ct_objects ASSIGNING WITH KEY sha1 = is_object-sha1.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Base not found, { is_object-sha1 }| ).
+ zcx_abapgit_exception=>raise( |Base not found, { is_object-sha1 }| ).
ELSEIF -type = lif_defs=>gc_type-ref_d.
* sanity check
- lcx_exception=>raise( 'Delta, base eq delta' ).
+ zcx_abapgit_exception=>raise( 'Delta, base eq delta' ).
ENDIF.
lv_base = -data.
@@ -857,7 +857,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
IF ls_node-chmod <> lif_defs=>gc_chmod-dir
AND ls_node-chmod <> lif_defs=>gc_chmod-file
AND ls_node-chmod <> lif_defs=>gc_chmod-executable.
- lcx_exception=>raise( 'Unknown chmod' ).
+ zcx_abapgit_exception=>raise( 'Unknown chmod' ).
ENDIF.
ls_node-name = lv_name.
@@ -886,7 +886,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
cv_decompressed = ls_data-raw.
IF lv_compressed_len IS INITIAL.
- lcx_exception=>raise( 'Decompression falied :o/' ).
+ zcx_abapgit_exception=>raise( 'Decompression falied :o/' ).
ENDIF.
cv_data = cv_data+lv_compressed_len.
@@ -899,7 +899,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
cv_data = cv_data+1.
ENDIF.
IF cv_data(4) <> lv_adler32.
- lcx_exception=>raise( 'Wrong Adler checksum' ).
+ zcx_abapgit_exception=>raise( 'Wrong Adler checksum' ).
ENDIF.
ENDMETHOD.
@@ -926,13 +926,13 @@ CLASS lcl_git_pack IMPLEMENTATION.
* header
IF NOT xstrlen( lv_data ) > 4 OR lv_data(4) <> c_pack_start.
- lcx_exception=>raise( 'Unexpected pack header' ).
+ zcx_abapgit_exception=>raise( 'Unexpected pack header' ).
ENDIF.
lv_data = lv_data+4.
* version
IF lv_data(4) <> c_version.
- lcx_exception=>raise( 'Version not supported' ).
+ zcx_abapgit_exception=>raise( 'Version not supported' ).
ENDIF.
lv_data = lv_data+4.
@@ -958,7 +958,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
* strip header, '789C', CMF + FLG
lv_zlib = lv_data(2).
IF lv_zlib <> c_zlib AND lv_zlib <> c_zlib_hmm.
- lcx_exception=>raise( 'Unexpected zlib header' ).
+ zcx_abapgit_exception=>raise( 'Unexpected zlib header' ).
ENDIF.
lv_data = lv_data+2.
@@ -973,7 +973,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
raw_out_len = lv_decompress_len ).
IF lv_expected <> lv_decompress_len.
- lcx_exception=>raise( 'Decompression falied' ).
+ zcx_abapgit_exception=>raise( 'Decompression falied' ).
ENDIF.
cl_abap_gzip=>compress_binary(
@@ -1024,7 +1024,7 @@ CLASS lcl_git_pack IMPLEMENTATION.
lv_xstring = iv_data(lv_len).
lv_sha1 = lcl_hash=>sha1_raw( lv_xstring ).
IF to_upper( lv_sha1 ) <> lv_data.
- lcx_exception=>raise( 'SHA1 at end of pack doesnt match' ).
+ zcx_abapgit_exception=>raise( 'SHA1 at end of pack doesnt match' ).
ENDIF.
decode_deltas( CHANGING ct_objects = rt_objects ).
@@ -1109,7 +1109,7 @@ CLASS lcl_git_porcelain DEFINITION FINAL FRIENDS ltcl_git_porcelain.
EXPORTING et_files TYPE lif_defs=>ty_files_tt
et_objects TYPE lif_defs=>ty_objects_tt
ev_branch TYPE lif_defs=>ty_sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS push
IMPORTING io_repo TYPE REF TO lcl_repo_online
@@ -1117,24 +1117,24 @@ CLASS lcl_git_porcelain DEFINITION FINAL FRIENDS ltcl_git_porcelain.
io_stage TYPE REF TO lcl_stage
EXPORTING ev_branch TYPE lif_defs=>ty_sha1
et_updated_files TYPE lif_defs=>ty_file_signatures_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS create_branch
IMPORTING io_repo TYPE REF TO lcl_repo_online
iv_name TYPE string
iv_from TYPE lif_defs=>ty_sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS delete_branch
IMPORTING io_repo TYPE REF TO lcl_repo_online
is_branch TYPE lcl_git_branch_list=>ty_git_branch
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS full_tree
IMPORTING it_objects TYPE lif_defs=>ty_objects_tt
iv_branch TYPE lif_defs=>ty_sha1
RETURNING VALUE(rt_expanded) TYPE ty_expanded_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
@@ -1159,7 +1159,7 @@ CLASS lcl_git_porcelain DEFINITION FINAL FRIENDS ltcl_git_porcelain.
CLASS-METHODS build_trees
IMPORTING it_expanded TYPE ty_expanded_tt
RETURNING VALUE(rt_trees) TYPE ty_trees_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS find_folders
IMPORTING it_expanded TYPE ty_expanded_tt
@@ -1170,14 +1170,14 @@ CLASS lcl_git_porcelain DEFINITION FINAL FRIENDS ltcl_git_porcelain.
iv_sha1 TYPE lif_defs=>ty_sha1
iv_path TYPE string
CHANGING ct_files TYPE lif_defs=>ty_files_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS walk_tree
IMPORTING it_objects TYPE lif_defs=>ty_objects_tt
iv_tree TYPE lif_defs=>ty_sha1
iv_base TYPE string
RETURNING VALUE(rt_expanded) TYPE ty_expanded_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS receive_pack
IMPORTING is_comment TYPE lif_defs=>ty_comment
@@ -1186,7 +1186,7 @@ CLASS lcl_git_porcelain DEFINITION FINAL FRIENDS ltcl_git_porcelain.
it_blobs TYPE lif_defs=>ty_files_tt
io_stage TYPE REF TO lcl_stage
RETURNING VALUE(rv_branch) TYPE lif_defs=>ty_sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_porcelain DEFINITION
@@ -1199,7 +1199,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
METHOD receive_pack.
- DATA: lv_time TYPE lcl_time=>ty_unixtime,
+ DATA: lv_time TYPE zcl_abapgit_time=>ty_unixtime,
lv_commit TYPE xstring,
lt_objects TYPE lif_defs=>ty_objects_tt,
lv_pack TYPE xstring,
@@ -1210,7 +1210,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
LIKE LINE OF it_blobs.
- lv_time = lcl_time=>get( ).
+ lv_time = zcl_abapgit_time=>get( ).
READ TABLE it_trees ASSIGNING WITH KEY path = '/'.
ASSERT sy-subrc = 0.
@@ -1302,7 +1302,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
lv_pack TYPE xstring.
IF iv_name CS ` `.
- lcx_exception=>raise( 'Branch name cannot contain blank spaces' ).
+ zcx_abapgit_exception=>raise( 'Branch name cannot contain blank spaces' ).
ENDIF.
* "client MUST send an empty packfile"
@@ -1391,7 +1391,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
CLEAR -sha1. " Mark as deleted
WHEN OTHERS.
- lcx_exception=>raise( 'stage method not supported, todo' ).
+ zcx_abapgit_exception=>raise( 'stage method not supported, todo' ).
ENDCASE.
ENDLOOP.
@@ -1419,7 +1419,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
WITH KEY sha1 = iv_tree
type = lif_defs=>gc_type-tree.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'tree not found' ).
+ zcx_abapgit_exception=>raise( 'tree not found' ).
ENDIF.
lt_nodes = lcl_git_pack=>decode_tree( ls_object-data ).
@@ -1439,7 +1439,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
iv_base = iv_base && -name && '/' ).
APPEND LINES OF lt_expanded TO rt_expanded.
WHEN OTHERS.
- lcx_exception=>raise( 'walk_tree: unknown chmod' ).
+ zcx_abapgit_exception=>raise( 'walk_tree: unknown chmod' ).
ENDCASE.
ENDLOOP.
@@ -1453,7 +1453,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
READ TABLE it_objects INTO ls_object WITH KEY sha1 = iv_branch type = lif_defs=>gc_type-commit.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'commit not found' ).
+ zcx_abapgit_exception=>raise( 'commit not found' ).
ENDIF.
ls_commit = lcl_git_pack=>decode_commit( ls_object-data ).
@@ -1479,7 +1479,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
READ TABLE et_objects INTO ls_object WITH KEY sha1 = ev_branch type = lif_defs=>gc_type-commit.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Commit/branch not found' ).
+ zcx_abapgit_exception=>raise( 'Commit/branch not found' ).
ENDIF.
ls_commit = lcl_git_pack=>decode_commit( ls_object-data ).
@@ -1599,7 +1599,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
READ TABLE it_objects ASSIGNING WITH KEY sha1 = iv_sha1 type = lif_defs=>gc_type-tree.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Walk, tree not found' ).
+ zcx_abapgit_exception=>raise( 'Walk, tree not found' ).
ENDIF.
lt_nodes = lcl_git_pack=>decode_tree( -data ).
@@ -1609,7 +1609,7 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
READ TABLE it_objects ASSIGNING
WITH KEY sha1 = -sha1 type = lif_defs=>gc_type-blob.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Walk, blob not found' ).
+ zcx_abapgit_exception=>raise( 'Walk, blob not found' ).
ENDIF.
CLEAR ls_file.
diff --git a/src/zabapgit_git_helpers.prog.abap b/src/zabapgit_git_helpers.prog.abap
index 65e20e3aa..2cda29106 100644
--- a/src/zabapgit_git_helpers.prog.abap
+++ b/src/zabapgit_git_helpers.prog.abap
@@ -14,12 +14,12 @@ CLASS lcl_git_utils DEFINITION FINAL. " > Maybe better move to lcl_git_pack ??
CLASS-METHODS pkt_string
IMPORTING iv_string TYPE string
RETURNING VALUE(rv_pkt) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS length_utf8_hex
IMPORTING iv_data TYPE xstring
RETURNING VALUE(rv_len) TYPE i
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_git_utils
@@ -61,7 +61,7 @@ CLASS lcl_git_utils IMPLEMENTATION.
lo_obj->read( EXPORTING n = lv_len
IMPORTING data = lv_string ).
CATCH cx_sy_conversion_codepage.
- lcx_exception=>raise( 'error converting to hex, LENGTH_UTF8_HEX' ).
+ zcx_abapgit_exception=>raise( 'error converting to hex, LENGTH_UTF8_HEX' ).
ENDTRY.
lv_char4 = lv_string.
@@ -80,7 +80,7 @@ CLASS lcl_git_utils IMPLEMENTATION.
lv_len = strlen( iv_string ).
IF lv_len >= 255.
- lcx_exception=>raise( 'PKT, todo' ).
+ zcx_abapgit_exception=>raise( 'PKT, todo' ).
ENDIF.
lv_x = lv_len + 4.
@@ -115,27 +115,27 @@ CLASS lcl_git_branch_list DEFINITION FINAL.
METHODS constructor
IMPORTING iv_data TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS find_by_name
IMPORTING iv_branch_name TYPE clike
RETURNING VALUE(rs_branch) TYPE ty_git_branch
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_head " For potential future use
RETURNING VALUE(rs_branch) TYPE ty_git_branch
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_head_symref
RETURNING VALUE(rv_head_symref) TYPE string.
METHODS get_branches_only
RETURNING VALUE(rt_branches) TYPE ty_git_branch_list_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_tags_only " For potential future use
RETURNING VALUE(rt_branches) TYPE ty_git_branch_list_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS is_ignored
IMPORTING iv_branch_name TYPE clike
@@ -165,7 +165,7 @@ CLASS lcl_git_branch_list DEFINITION FINAL.
IMPORTING iv_data TYPE string
EXPORTING et_list TYPE ty_git_branch_list_tt
ev_head_symref TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS parse_head_params
IMPORTING iv_data TYPE string
@@ -192,13 +192,13 @@ CLASS lcl_git_branch_list IMPLEMENTATION.
METHOD find_by_name.
IF iv_branch_name IS INITIAL.
- lcx_exception=>raise( 'Branch name empty' ).
+ zcx_abapgit_exception=>raise( 'Branch name empty' ).
ENDIF.
READ TABLE mt_branches INTO rs_branch
WITH KEY name = iv_branch_name.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Branch not found' ).
+ zcx_abapgit_exception=>raise( 'Branch not found' ).
ENDIF.
ENDMETHOD. "find_by_name
@@ -244,7 +244,7 @@ CLASS lcl_git_branch_list IMPLEMENTATION.
lv_hash = lv_data+4.
lv_name = lv_data+45.
ELSEIF sy-tabix = 2 AND strlen( lv_data ) = 8 AND lv_data(8) = '00000000'.
- lcx_exception=>raise( 'No branches, create branch manually by adding file' ).
+ zcx_abapgit_exception=>raise( 'No branches, create branch manually by adding file' ).
ELSE.
CONTINUE.
ENDIF.
diff --git a/src/zabapgit_gui.prog.abap b/src/zabapgit_gui.prog.abap
index efcbe2a22..850af55d1 100644
--- a/src/zabapgit_gui.prog.abap
+++ b/src/zabapgit_gui.prog.abap
@@ -10,12 +10,12 @@ CLASS lcl_gui DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
PUBLIC SECTION.
METHODS go_home
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS back
IMPORTING iv_to_bookmark TYPE abap_bool DEFAULT abap_false
RETURNING VALUE(rv_exit) TYPE xfeld
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS on_event FOR EVENT sapevent OF cl_gui_html_viewer
IMPORTING action frame getdata postdata query_table. "#EC NEEDED
@@ -34,10 +34,10 @@ CLASS lcl_gui DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
mo_html_viewer TYPE REF TO cl_gui_html_viewer.
METHODS constructor
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS startup
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS cache_html
IMPORTING iv_text TYPE string
@@ -52,7 +52,7 @@ CLASS lcl_gui DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
RETURNING VALUE(rv_url) TYPE w3url.
METHODS render
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_current_page_name
RETURNING VALUE(rv_page_name) TYPE string.
@@ -61,7 +61,7 @@ CLASS lcl_gui DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
IMPORTING ii_page TYPE REF TO lif_gui_page
iv_with_bookmark TYPE abap_bool DEFAULT abap_false
iv_replacing TYPE abap_bool DEFAULT abap_false
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS handle_action
IMPORTING action TYPE c
@@ -85,7 +85,7 @@ CLASS lcl_gui IMPLEMENTATION.
METHOD handle_action.
- DATA: lx_exception TYPE REF TO lcx_exception,
+ DATA: lx_exception TYPE REF TO zcx_abapgit_exception,
li_page TYPE REF TO lif_gui_page,
lv_state TYPE i.
@@ -130,12 +130,12 @@ CLASS lcl_gui IMPLEMENTATION.
WHEN lif_defs=>gc_event_state-no_more_act.
" Do nothing, handling completed
WHEN OTHERS.
- lcx_exception=>raise( |Unknown action: { action }| ).
+ zcx_abapgit_exception=>raise( |Unknown action: { action }| ).
ENDCASE.
- CATCH lcx_exception INTO lx_exception.
+ CATCH zcx_abapgit_exception INTO lx_exception.
ROLLBACK WORK.
- MESSAGE lx_exception->mv_text TYPE 'S' DISPLAY LIKE 'E'.
+ MESSAGE lx_exception->text TYPE 'S' DISPLAY LIKE 'E'.
CATCH lcx_cancel ##NO_HANDLER.
" Do nothing = gc_event_state-no_more_act
ENDTRY.
diff --git a/src/zabapgit_gui_asset_manager.prog.abap b/src/zabapgit_gui_asset_manager.prog.abap
index e061f4b47..c46555194 100644
--- a/src/zabapgit_gui_asset_manager.prog.abap
+++ b/src/zabapgit_gui_asset_manager.prog.abap
@@ -8,7 +8,7 @@ CLASS lcl_gui_asset_manager DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_gui.
METHODS get_asset
IMPORTING iv_asset_name TYPE string
RETURNING VALUE(rv_data) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_images
RETURNING VALUE(rt_images) TYPE lif_defs=>tt_web_assets.
@@ -21,12 +21,12 @@ CLASS lcl_gui_asset_manager DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_gui.
METHODS get_inline_asset
IMPORTING iv_asset_name TYPE string
RETURNING VALUE(rv_data) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_mime_asset
IMPORTING iv_asset_name TYPE c
RETURNING VALUE(rv_data) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_inline_images
RETURNING VALUE(rt_images) TYPE lif_defs=>tt_web_assets.
@@ -48,7 +48,7 @@ CLASS lcl_gui_asset_manager IMPLEMENTATION.
WHEN 'JS_COMMON'.
lv_mime_name = 'ZABAPGIT_JS_COMMON'.
WHEN OTHERS.
- lcx_exception=>raise( |Improper resource name: { iv_asset_name }| ).
+ zcx_abapgit_exception=>raise( |Improper resource name: { iv_asset_name }| ).
ENDCASE.
" Inline is default (for older AG snapshots to work)
@@ -58,7 +58,7 @@ CLASS lcl_gui_asset_manager IMPLEMENTATION.
ENDIF.
IF rv_data IS INITIAL.
- lcx_exception=>raise( |Failed to get GUI resource: { iv_asset_name }| ).
+ zcx_abapgit_exception=>raise( |Failed to get GUI resource: { iv_asset_name }| ).
ENDIF.
ENDMETHOD. " get_asset.
@@ -152,7 +152,7 @@ CLASS lcl_gui_asset_manager IMPLEMENTATION.
WHEN 'JS_COMMON'.
" @@abapmerge include zabapgit_js_common.w3mi.data.js > _inline '$$'.
WHEN OTHERS.
- lcx_exception=>raise( |No inline resource: { iv_asset_name }| ).
+ zcx_abapgit_exception=>raise( |No inline resource: { iv_asset_name }| ).
ENDCASE.
CONCATENATE LINES OF lt_data INTO lv_str SEPARATED BY lif_defs=>gc_newline.
diff --git a/src/zabapgit_gui_pages.prog.abap b/src/zabapgit_gui_pages.prog.abap
index e4c658462..b1e5182cc 100644
--- a/src/zabapgit_gui_pages.prog.abap
+++ b/src/zabapgit_gui_pages.prog.abap
@@ -30,3 +30,4 @@ INCLUDE zabapgit_page_stage.
INCLUDE zabapgit_page_debug.
INCLUDE zabapgit_page_settings.
INCLUDE zabapgit_page_repo_settings.
+INCLUDE zabapgit_page_syntax_check.
diff --git a/src/zabapgit_gui_router.prog.abap b/src/zabapgit_gui_router.prog.abap
index 1c7a0b009..5a74941a8 100644
--- a/src/zabapgit_gui_router.prog.abap
+++ b/src/zabapgit_gui_router.prog.abap
@@ -15,45 +15,45 @@ CLASS lcl_gui_router DEFINITION FINAL.
it_postdata TYPE cnht_post_data_tab OPTIONAL
EXPORTING ei_page TYPE REF TO lif_gui_page
ev_state TYPE i
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
PRIVATE SECTION.
METHODS get_page_by_name
IMPORTING iv_name TYPE clike
RETURNING VALUE(ri_page) TYPE REF TO lif_gui_page
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_page_diff
IMPORTING iv_getdata TYPE clike
iv_prev_page TYPE clike
RETURNING VALUE(ri_page) TYPE REF TO lif_gui_page
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_page_branch_overview
IMPORTING iv_getdata TYPE clike
RETURNING VALUE(ri_page) TYPE REF TO lif_gui_page
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_page_stage
IMPORTING iv_getdata TYPE clike
RETURNING VALUE(ri_page) TYPE REF TO lif_gui_page
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_page_db_by_name
IMPORTING iv_name TYPE clike
iv_getdata TYPE clike
RETURNING VALUE(ri_page) TYPE REF TO lif_gui_page
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_page_background
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
RETURNING VALUE(ri_page) TYPE REF TO lif_gui_page
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_page_playground
RETURNING VALUE(ri_page) TYPE REF TO lif_gui_page
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
ENDCLASS.
@@ -163,6 +163,11 @@ CLASS lcl_gui_router IMPLEMENTATION.
WHEN lif_defs=>gc_action-repo_refresh. " Repo refresh
lcl_services_repo=>refresh( lv_key ).
ev_state = lif_defs=>gc_event_state-re_render.
+ WHEN lif_defs=>gc_action-repo_syntax_check.
+ CREATE OBJECT ei_page TYPE lcl_gui_page_syntax_check
+ EXPORTING
+ io_repo = lcl_app=>repo_srv( )->get( lv_key ).
+ ev_state = lif_defs=>gc_event_state-new_page.
WHEN lif_defs=>gc_action-repo_purge. " Repo remove & purge all objects
lcl_services_repo=>purge( lv_key ).
ev_state = lif_defs=>gc_event_state-re_render.
@@ -251,7 +256,7 @@ CLASS lcl_gui_router IMPLEMENTATION.
TRY.
CREATE OBJECT ri_page TYPE (lv_page_class).
CATCH cx_sy_create_object_error.
- lcx_exception=>raise( |Cannot create page class { lv_page_class }| ).
+ zcx_abapgit_exception=>raise( |Cannot create page class { lv_page_class }| ).
ENDTRY.
ENDMETHOD. " get_page_by_name
@@ -272,7 +277,7 @@ CLASS lcl_gui_router IMPLEMENTATION.
CATCH cx_sy_create_object_error.
lv_message = |Cannot create page class { lv_page_class }|.
- lcx_exception=>raise( lv_message ).
+ zcx_abapgit_exception=>raise( lv_message ).
ENDTRY.
ENDMETHOD. " get_page_db_by_name
@@ -372,7 +377,7 @@ CLASS lcl_gui_router IMPLEMENTATION.
TRY.
CREATE OBJECT ri_page TYPE (lv_class_name).
CATCH cx_sy_create_object_error.
- lcx_exception=>raise( |Cannot create page class { lv_class_name }| ).
+ zcx_abapgit_exception=>raise( |Cannot create page class { lv_class_name }| ).
ENDTRY.
ENDMETHOD. "get_page_playground
diff --git a/src/zabapgit_html_action_utils.prog.abap b/src/zabapgit_html_action_utils.prog.abap
index bf81621fc..c73ea0eb5 100644
--- a/src/zabapgit_html_action_utils.prog.abap
+++ b/src/zabapgit_html_action_utils.prog.abap
@@ -38,7 +38,7 @@ CLASS lcl_html_action_utils DEFINITION FINAL.
IMPORTING iv_string TYPE clike
EXPORTING ev_obj_type TYPE tadir-object
ev_obj_name TYPE tadir-obj_name
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS dir_encode
IMPORTING iv_path TYPE string
@@ -47,7 +47,7 @@ CLASS lcl_html_action_utils DEFINITION FINAL.
CLASS-METHODS dir_decode
IMPORTING iv_string TYPE clike
RETURNING VALUE(rv_path) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS file_encode
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
@@ -64,7 +64,7 @@ CLASS lcl_html_action_utils DEFINITION FINAL.
EXPORTING ev_key TYPE lcl_persistence_repo=>ty_repo-key
eg_file TYPE any "assuming ty_file
eg_object TYPE any "assuming ty_item
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS dbkey_encode
IMPORTING is_key TYPE lcl_persistence_db=>ty_content
@@ -90,7 +90,7 @@ CLASS lcl_html_action_utils DEFINITION FINAL.
IMPORTING iv_getdata TYPE clike
EXPORTING ev_key TYPE lcl_persistence_repo=>ty_repo-key
ev_seed TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS unescape
diff --git a/src/zabapgit_html_chunks.prog.abap b/src/zabapgit_html_chunks.prog.abap
index bae2b2983..d3b095fac 100644
--- a/src/zabapgit_html_chunks.prog.abap
+++ b/src/zabapgit_html_chunks.prog.abap
@@ -7,7 +7,7 @@ CLASS lcl_gui_chunk_lib DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS render_error
- IMPORTING ix_error TYPE REF TO lcx_exception OPTIONAL
+ IMPORTING ix_error TYPE REF TO zcx_abapgit_exception OPTIONAL
iv_error TYPE string OPTIONAL
RETURNING VALUE(ro_html) TYPE REF TO lcl_html.
@@ -19,7 +19,7 @@ CLASS lcl_gui_chunk_lib DEFINITION FINAL.
iv_branch TYPE string OPTIONAL
io_news TYPE REF TO lcl_news OPTIONAL
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS render_item_state
IMPORTING iv1 TYPE char1
@@ -31,17 +31,17 @@ CLASS lcl_gui_chunk_lib DEFINITION FINAL.
io_repo TYPE REF TO lcl_repo_online
iv_interactive TYPE abap_bool
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS render_js_error_banner
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS render_news
IMPORTING
io_news TYPE REF TO lcl_news
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_gui_chunk_lib
@@ -223,7 +223,7 @@ CLASS lcl_gui_chunk_lib IMPLEMENTATION.
CREATE OBJECT ro_html.
IF ix_error IS BOUND.
- lv_error = ix_error->mv_text.
+ lv_error = ix_error->text.
ELSE.
lv_error = iv_error.
ENDIF.
diff --git a/src/zabapgit_http.prog.abap b/src/zabapgit_http.prog.abap
index 7ff6fab52..f46300637 100644
--- a/src/zabapgit_http.prog.abap
+++ b/src/zabapgit_http.prog.abap
@@ -8,13 +8,13 @@ CLASS lcl_proxy_auth DEFINITION FINAL.
CLASS-METHODS:
run
IMPORTING ii_client TYPE REF TO if_http_client
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-DATA: gv_username TYPE string,
gv_password TYPE string.
- CLASS-METHODS: enter RAISING lcx_exception.
+ CLASS-METHODS: enter RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -43,7 +43,7 @@ CLASS lcl_proxy_auth IMPLEMENTATION.
cv_pass = gv_password ).
IF gv_username IS INITIAL OR gv_password IS INITIAL.
- lcx_exception=>raise( 'Proxy auth failed' ).
+ zcx_abapgit_exception=>raise( 'Proxy auth failed' ).
ENDIF.
ENDMETHOD.
@@ -59,11 +59,11 @@ CLASS lcl_http_digest DEFINITION FINAL.
ii_client TYPE REF TO if_http_client
iv_username TYPE string
iv_password TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
run
IMPORTING
ii_client TYPE REF TO if_http_client
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
DATA: mv_ha1 TYPE string,
@@ -80,7 +80,7 @@ CLASS lcl_http_digest DEFINITION FINAL.
iv_data TYPE string
RETURNING
VALUE(rv_hash) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS:
hash
@@ -92,7 +92,7 @@ CLASS lcl_http_digest DEFINITION FINAL.
iv_cnonse TYPE string
RETURNING
VALUE(rv_response) TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
parse
IMPORTING
ii_client TYPE REF TO if_http_client.
@@ -114,17 +114,17 @@ CLASS lcl_http_client DEFINITION FINAL.
iv_data TYPE xstring
RETURNING
VALUE(rv_data) TYPE xstring
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_cdata
RETURNING VALUE(rv_value) TYPE string,
check_http_200
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
send_receive
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
set_headers
IMPORTING iv_url TYPE string
iv_service TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
DATA: mi_client TYPE REF TO if_http_client,
@@ -222,7 +222,7 @@ CLASS lcl_http_client IMPLEMENTATION.
WHEN OTHERS.
lv_text = 'Another error occured'. "#EC NOTEXT
ENDCASE.
- lcx_exception=>raise( lv_text ).
+ zcx_abapgit_exception=>raise( lv_text ).
ENDIF.
ENDMETHOD. "send_receive
@@ -240,18 +240,18 @@ CLASS lcl_http_client IMPLEMENTATION.
WHEN 200.
RETURN.
WHEN 302.
- lcx_exception=>raise( 'HTTP redirect, check URL' ).
+ zcx_abapgit_exception=>raise( 'HTTP redirect, check URL' ).
WHEN 401.
- lcx_exception=>raise( 'HTTP 401, unauthorized' ).
+ zcx_abapgit_exception=>raise( 'HTTP 401, unauthorized' ).
WHEN 403.
- lcx_exception=>raise( 'HTTP 403, forbidden' ).
+ zcx_abapgit_exception=>raise( 'HTTP 403, forbidden' ).
WHEN 404.
- lcx_exception=>raise( 'HTTP 404, not found' ).
+ zcx_abapgit_exception=>raise( 'HTTP 404, not found' ).
WHEN 415.
- lcx_exception=>raise( 'HTTP 415, unsupported media type' ).
+ zcx_abapgit_exception=>raise( 'HTTP 415, unsupported media type' ).
WHEN OTHERS.
lv_text = mi_client->response->get_cdata( ).
- lcx_exception=>raise( |HTTP error code: { lv_code }, { lv_text }| ).
+ zcx_abapgit_exception=>raise( |HTTP error code: { lv_code }, { lv_text }| ).
ENDCASE.
ENDMETHOD. "http_200
@@ -359,7 +359,7 @@ CLASS lcl_http_digest IMPLEMENTATION.
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from CALCULATE_HASH_FOR_RAW' ).
+ zcx_abapgit_exception=>raise( 'error from CALCULATE_HASH_FOR_RAW' ).
ENDIF.
rv_hash = lv_hash.
@@ -383,14 +383,14 @@ CLASS lcl_http DEFINITION FINAL.
IMPORTING iv_url TYPE string
iv_service TYPE string
RETURNING VALUE(ro_client) TYPE REF TO lcl_http_client
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS:
check_auth_requested
IMPORTING ii_client TYPE REF TO if_http_client
RETURNING VALUE(rv_auth_requested) TYPE abap_bool
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
is_local_system
IMPORTING iv_url TYPE string
RETURNING VALUE(rv_bool) TYPE abap_bool,
@@ -399,7 +399,7 @@ CLASS lcl_http DEFINITION FINAL.
io_client TYPE REF TO lcl_http_client
iv_url TYPE string
RETURNING VALUE(rv_scheme) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -446,7 +446,7 @@ CLASS lcl_http IMPLEMENTATION.
lv_text = 'While creating HTTP Client'. "#EC NOTEXT
ENDCASE.
- lcx_exception=>raise( lv_text ).
+ zcx_abapgit_exception=>raise( lv_text ).
ENDIF.
IF lo_settings->get_proxy_authentication( ) = abap_true.
@@ -559,7 +559,7 @@ CLASS lcl_http IMPLEMENTATION.
cv_pass = lv_pass ).
IF lv_user IS INITIAL.
- lcx_exception=>raise( 'HTTP 401, unauthorized' ).
+ zcx_abapgit_exception=>raise( 'HTTP 401, unauthorized' ).
ENDIF.
IF lv_user <> lv_default_user.
diff --git a/src/zabapgit_migrations.prog.abap b/src/zabapgit_migrations.prog.abap
index fe556d302..7eb0a6228 100644
--- a/src/zabapgit_migrations.prog.abap
+++ b/src/zabapgit_migrations.prog.abap
@@ -6,13 +6,13 @@ CLASS lcl_migrations DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS run
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS rebuild_local_checksums_161112
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS local_dot_abapgit
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_migrations
@@ -37,7 +37,7 @@ CLASS lcl_migrations IMPLEMENTATION.
lv_msg TYPE string,
lv_shown TYPE abap_bool,
lo_dot_abapgit TYPE REF TO lcl_dot_abapgit,
- lx_exception TYPE REF TO lcx_exception.
+ lx_exception TYPE REF TO zcx_abapgit_exception.
FIELD-SYMBOLS: LIKE LINE OF lt_repos.
@@ -64,12 +64,12 @@ CLASS lcl_migrations IMPLEMENTATION.
" everybody to fetch their repos.
TRY.
->refresh( ).
- CATCH lcx_exception INTO lx_exception.
+ CATCH zcx_abapgit_exception INTO lx_exception.
lv_msg = |Please do not use the "{ ->get_name( ) }" repository until migrated|.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'Migration has failed'
- txt1 = lx_exception->mv_text
+ txt1 = lx_exception->text
txt2 = lv_msg
txt3 = 'You will be prompted to migrate the repository every time you run abapGit.'
txt4 = 'You can safely remove the repository in its ''Advanced -> Remove'' menu.'.
diff --git a/src/zabapgit_news.prog.abap b/src/zabapgit_news.prog.abap
index ceb19df72..c52e3a982 100644
--- a/src/zabapgit_news.prog.abap
+++ b/src/zabapgit_news.prog.abap
@@ -28,7 +28,7 @@ CLASS lcl_news DEFINITION CREATE PRIVATE FRIENDS ltcl_news.
create " TODO REFACTOR
IMPORTING io_repo TYPE REF TO lcl_repo
RETURNING VALUE(ro_instance) TYPE REF TO lcl_news
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS:
get_log
@@ -115,7 +115,7 @@ CLASS lcl_news IMPLEMENTATION.
TRY.
" Find changelog
lt_remote = io_repo->get_files_remote( ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
RETURN.
ENDTRY.
diff --git a/src/zabapgit_object_acid.prog.abap b/src/zabapgit_object_acid.prog.abap
index 2e339f2b8..908bf7352 100644
--- a/src/zabapgit_object_acid.prog.abap
+++ b/src/zabapgit_object_acid.prog.abap
@@ -16,7 +16,7 @@ CLASS lcl_object_acid DEFINITION INHERITING FROM lcl_objects_super FINAL.
PRIVATE SECTION.
METHODS: create_object
RETURNING VALUE(ro_aab) TYPE REF TO cl_aab_id
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_acid DEFINITION
@@ -54,7 +54,7 @@ CLASS lcl_object_acid IMPLEMENTATION.
name_not_allowed = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error creating CL_AAB_ID object' ).
+ zcx_abapgit_exception=>raise( 'error creating CL_AAB_ID object' ).
ENDIF.
ENDMETHOD. "create_object
@@ -117,7 +117,7 @@ CLASS lcl_object_acid IMPLEMENTATION.
where_used_error = 9
OTHERS = 10 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error deleting ACID object' ).
+ zcx_abapgit_exception=>raise( 'error deleting ACID object' ).
ENDIF.
lo_aab->dequeue( ).
diff --git a/src/zabapgit_object_auth.prog.abap b/src/zabapgit_object_auth.prog.abap
index 8cfe21e0b..12d58651d 100644
--- a/src/zabapgit_object_auth.prog.abap
+++ b/src/zabapgit_object_auth.prog.abap
@@ -64,12 +64,12 @@ CLASS lcl_object_auth IMPLEMENTATION.
CREATE OBJECT lo_auth.
IF lo_auth->add_afield_to_trkorr( ls_authx-fieldname ) <> 0.
- lcx_exception=>raise( 'Error deserializing AUTH' ).
+ zcx_abapgit_exception=>raise( 'Error deserializing AUTH' ).
ENDIF.
MODIFY authx FROM ls_authx.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error deserializing AUTH' ).
+ zcx_abapgit_exception=>raise( 'Error deserializing AUTH' ).
ENDIF.
CALL FUNCTION 'DB_COMMIT'.
@@ -96,7 +96,7 @@ CLASS lcl_object_auth IMPLEMENTATION.
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SUSR_AUTF_DELETE_FIELD' ).
+ zcx_abapgit_exception=>raise( 'error from SUSR_AUTF_DELETE_FIELD' ).
ENDIF.
ENDMETHOD. "lif_object~delete
diff --git a/src/zabapgit_object_clas.prog.abap b/src/zabapgit_object_clas.prog.abap
index 1bb625e13..829e3521f 100644
--- a/src/zabapgit_object_clas.prog.abap
+++ b/src/zabapgit_object_clas.prog.abap
@@ -25,20 +25,20 @@ CLASS lcl_object_clas DEFINITION INHERITING FROM lcl_objects_program.
deserialize_abap
IMPORTING io_xml TYPE REF TO lcl_xml_input
iv_package TYPE devclass
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize_docu
IMPORTING io_xml TYPE REF TO lcl_xml_input
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize_tpool
IMPORTING io_xml TYPE REF TO lcl_xml_input
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize_sotr
IMPORTING io_xml TYPE REF TO lcl_xml_input
iv_package TYPE devclass
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
serialize_xml
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_dtel DEFINITION
@@ -430,7 +430,7 @@ CLASS lcl_oo_class IMPLEMENTATION.
other = 6
OTHERS = 7.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SEO_CLASS_CREATE_COMPLETE' ).
+ zcx_abapgit_exception=>raise( 'error from SEO_CLASS_CREATE_COMPLETE' ).
ENDIF.
ENDMETHOD.
@@ -450,7 +450,7 @@ CLASS lcl_oo_class IMPLEMENTATION.
locals_not_initialised = 4
OTHERS = 5.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from generate_locals' ).
+ zcx_abapgit_exception=>raise( 'error from generate_locals' ).
ENDIF.
ENDMETHOD.
@@ -464,7 +464,7 @@ CLASS lcl_oo_class IMPLEMENTATION.
LANGUAGE iv_language
STATE 'I'.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from INSERT TEXTPOOL' ).
+ zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ).
ENDIF.
lcl_objects_activation=>add( iv_type = 'REPT'
@@ -489,7 +489,7 @@ CLASS lcl_oo_class IMPLEMENTATION.
object_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SOTR_OBJECT_GET_OBJECTS' ).
+ zcx_abapgit_exception=>raise( 'error from SOTR_OBJECT_GET_OBJECTS' ).
ENDIF.
READ TABLE lt_objects INDEX 1 INTO lv_object.
@@ -526,7 +526,7 @@ CLASS lcl_oo_class IMPLEMENTATION.
no_entry_found = 18
OTHERS = 19.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SOTR_CREATE_CONCEPT' ).
+ zcx_abapgit_exception=>raise( 'error from SOTR_CREATE_CONCEPT' ).
ENDIF.
ENDLOOP.
ENDMETHOD.
@@ -566,7 +566,7 @@ CLASS lcl_oo_class IMPLEMENTATION.
class_not_existing = 1 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( |Class { lv_class_name } not existing| ).
+ zcx_abapgit_exception=>raise( |Class { lv_class_name } not existing| ).
ENDIF.
LOOP AT lt_methods ASSIGNING .
@@ -590,7 +590,7 @@ CLASS lcl_oo_class IMPLEMENTATION.
IF sy-subrc = 1.
RETURN. " in case only inactive version exists
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from seo_clif_get' ).
+ zcx_abapgit_exception=>raise( 'error from seo_clif_get' ).
ENDIF.
ENDMETHOD.
@@ -673,7 +673,7 @@ CLASS lcl_oo_class IMPLEMENTATION.
other = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from SEO_CLASS_DELETE_COMPLETE' ).
+ zcx_abapgit_exception=>raise( 'Error from SEO_CLASS_DELETE_COMPLETE' ).
ENDIF.
ENDMETHOD.
diff --git a/src/zabapgit_object_clas_new.prog.abap b/src/zabapgit_object_clas_new.prog.abap
index 7132916a6..727123743 100644
--- a/src/zabapgit_object_clas_new.prog.abap
+++ b/src/zabapgit_object_clas_new.prog.abap
@@ -25,14 +25,14 @@ CLASS lcl_oo_class_new DEFINITION INHERITING FROM lcl_oo_class.
IMPORTING
iv_name TYPE seoclsname
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
update_meta
IMPORTING
iv_name TYPE seoclsname
iv_exposure TYPE seoexpose
it_source TYPE rswsourcet
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
determine_method_include
IMPORTING
iv_name TYPE seoclsname
@@ -40,7 +40,7 @@ CLASS lcl_oo_class_new DEFINITION INHERITING FROM lcl_oo_class.
RETURNING
VALUE(rv_program) TYPE programm
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
init_scanner
IMPORTING
it_source TYPE lif_defs=>ty_string_tt
@@ -89,7 +89,7 @@ CLASS lcl_oo_class_new IMPLEMENTATION.
internal_error_insert_report = 11
OTHERS = 12.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SEO_METHOD_GENERATE_INCLUDE' ).
+ zcx_abapgit_exception=>raise( 'error from SEO_METHOD_GENERATE_INCLUDE' ).
ENDIF.
rv_program = cl_oo_classname_service=>get_method_include( ls_mtdkey ).
@@ -115,7 +115,7 @@ CLASS lcl_oo_class_new IMPLEMENTATION.
other = 6
OTHERS = 7.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SEO_CLASS_CREATE_COMPLETE' ).
+ zcx_abapgit_exception=>raise( 'error from SEO_CLASS_CREATE_COMPLETE' ).
ENDIF.
ENDMETHOD.
@@ -192,7 +192,7 @@ CLASS lcl_oo_class_new IMPLEMENTATION.
read_source_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error instantiating CL_OO_CLASS_SECTION_SOURCE' ).
+ zcx_abapgit_exception=>raise( 'error instantiating CL_OO_CLASS_SECTION_SOURCE' ).
ENDIF.
lo_update->set_dark_mode( seox_true ).
@@ -210,7 +210,7 @@ CLASS lcl_oo_class_new IMPLEMENTATION.
scan_abap_source_error = 1
OTHERS = 2 ).
IF sy-subrc <> 0 OR lv_scan_error = abap_true.
- lcx_exception=>raise( 'CLAS, error while scanning source' ).
+ zcx_abapgit_exception=>raise( 'CLAS, error while scanning source' ).
ENDIF.
* this will update the SEO* database tables
@@ -254,7 +254,7 @@ CLASS lcl_oo_class_new IMPLEMENTATION.
_internal_class_overflow = 19
OTHERS = 20.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SEO_CLASS_GENERATE_CLASSPOOL' ).
+ zcx_abapgit_exception=>raise( 'error from SEO_CLASS_GENERATE_CLASSPOOL' ).
ENDIF.
ENDMETHOD.
@@ -313,7 +313,7 @@ CLASS lcl_oo_class_new IMPLEMENTATION.
TRY.
lt_source = lo_scanner->get_method_impl_source( lv_method ).
CATCH cx_oo_clif_component.
- lcx_exception=>raise( 'error from GET_METHOD_IMPL_SOURCE' ).
+ zcx_abapgit_exception=>raise( 'error from GET_METHOD_IMPL_SOURCE' ).
ENDTRY.
lv_program = determine_method_include(
iv_name = is_key-clsname
diff --git a/src/zabapgit_object_cmpt.prog.abap b/src/zabapgit_object_cmpt.prog.abap
index 63b7ebb77..fa01570bc 100644
--- a/src/zabapgit_object_cmpt.prog.abap
+++ b/src/zabapgit_object_cmpt.prog.abap
@@ -58,7 +58,7 @@ CLASS lcl_object_cmpt IMPLEMENTATION.
r_user = rv_user.
CATCH cx_root.
- lcx_exception=>raise( 'CMPT not supported' ).
+ zcx_abapgit_exception=>raise( 'CMPT not supported' ).
ENDTRY.
ENDMETHOD.
@@ -85,7 +85,7 @@ CLASS lcl_object_cmpt IMPLEMENTATION.
r_flg_exists = rv_bool.
CATCH cx_root.
- lcx_exception=>raise( 'CMPT not supported' ).
+ zcx_abapgit_exception=>raise( 'CMPT not supported' ).
ENDTRY.
ENDMETHOD.
@@ -110,7 +110,7 @@ CLASS lcl_object_cmpt IMPLEMENTATION.
ig_data = ).
CATCH cx_root.
- lcx_exception=>raise( 'CMPT not supported' ).
+ zcx_abapgit_exception=>raise( 'CMPT not supported' ).
ENDTRY.
@@ -138,7 +138,7 @@ CLASS lcl_object_cmpt IMPLEMENTATION.
i_flg_lines = abap_true.
CATCH cx_root.
- lcx_exception=>raise( 'CMPT not supported' ).
+ zcx_abapgit_exception=>raise( 'CMPT not supported' ).
ENDTRY.
CALL FUNCTION 'RS_CORR_INSERT'
@@ -156,7 +156,7 @@ CLASS lcl_object_cmpt IMPLEMENTATION.
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_CORR_INSERT, CMPT' ).
+ zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT, CMPT' ).
ENDIF.
ENDMETHOD.
@@ -176,11 +176,11 @@ CLASS lcl_object_cmpt IMPLEMENTATION.
r_flg_deleted = deleted.
CATCH cx_root.
- lcx_exception=>raise( 'CMPT not supported' ).
+ zcx_abapgit_exception=>raise( 'CMPT not supported' ).
ENDTRY.
IF deleted = abap_false.
- lcx_exception=>raise( |Error deleting CMPT { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |Error deleting CMPT { ms_item-obj_name }| ).
ENDIF.
ENDMETHOD.
@@ -199,7 +199,7 @@ CLASS lcl_object_cmpt IMPLEMENTATION.
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Error from RS_TOOL_ACCESS, CMPT| ).
+ zcx_abapgit_exception=>raise( |Error from RS_TOOL_ACCESS, CMPT| ).
ENDIF.
ENDMETHOD.
diff --git a/src/zabapgit_object_dcls.prog.abap b/src/zabapgit_object_dcls.prog.abap
index 9fda374ee..c527fd575 100644
--- a/src/zabapgit_object_dcls.prog.abap
+++ b/src/zabapgit_object_dcls.prog.abap
@@ -55,8 +55,8 @@ CLASS lcl_object_dcls IMPLEMENTATION.
jump_adt( i_obj_name = ms_item-obj_name
i_obj_type = ms_item-obj_type ).
- CATCH lcx_exception.
- lcx_exception=>raise( 'DCLS Jump Error' ).
+ CATCH zcx_abapgit_exception.
+ zcx_abapgit_exception=>raise( 'DCLS Jump Error' ).
ENDTRY.
ENDMETHOD.
@@ -75,7 +75,7 @@ CLASS lcl_object_dcls IMPLEMENTATION.
iv_dclname = ms_item-obj_name.
CATCH cx_root.
- lcx_exception=>raise( 'DCLS error' ).
+ zcx_abapgit_exception=>raise( 'DCLS error' ).
ENDTRY.
ENDMETHOD.
@@ -133,7 +133,7 @@ CLASS lcl_object_dcls IMPLEMENTATION.
ig_data = ).
CATCH cx_root.
- lcx_exception=>raise( 'DCLS error' ).
+ zcx_abapgit_exception=>raise( 'DCLS error' ).
ENDTRY.
ENDMETHOD.
@@ -175,7 +175,7 @@ CLASS lcl_object_dcls IMPLEMENTATION.
tadir_insert( iv_package ).
CATCH cx_root.
- lcx_exception=>raise( 'DCLS error' ).
+ zcx_abapgit_exception=>raise( 'DCLS error' ).
ENDTRY.
lcl_objects_activation=>add_item( ms_item ).
diff --git a/src/zabapgit_object_ddls.prog.abap b/src/zabapgit_object_ddls.prog.abap
index a79e61e70..88d1fe049 100644
--- a/src/zabapgit_object_ddls.prog.abap
+++ b/src/zabapgit_object_ddls.prog.abap
@@ -16,7 +16,7 @@ CLASS lcl_object_ddls DEFINITION INHERITING FROM lcl_objects_super FINAL.
PROTECTED SECTION.
METHODS open_adt_stob
IMPORTING iv_ddls_name TYPE tadir-obj_name
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_dtel DEFINITION
@@ -123,7 +123,7 @@ CLASS lcl_object_ddls IMPLEMENTATION.
me->open_adt_stob( iv_ddls_name = ms_item-obj_name ).
WHEN OTHERS.
- lcx_exception=>raise( 'DDLS Jump Error' ).
+ zcx_abapgit_exception=>raise( 'DDLS Jump Error' ).
ENDCASE.
ENDMETHOD. "jump
@@ -142,7 +142,7 @@ CLASS lcl_object_ddls IMPLEMENTATION.
EXPORTING
name = ms_item-obj_name.
CATCH cx_root.
- lcx_exception=>raise( 'DDLS error deleting' ).
+ zcx_abapgit_exception=>raise( 'DDLS error deleting' ).
ENDTRY.
ENDMETHOD. "delete
@@ -171,7 +171,7 @@ CLASS lcl_object_ddls IMPLEMENTATION.
IMPORTING
ddddlsrcv_wa = .
CATCH cx_root.
- lcx_exception=>raise( 'DDLS error reading' ).
+ zcx_abapgit_exception=>raise( 'DDLS error reading' ).
ENDTRY.
ASSIGN COMPONENT 'AS4USER' OF STRUCTURE TO .
@@ -233,7 +233,7 @@ CLASS lcl_object_ddls IMPLEMENTATION.
devclass = iv_package
prid = 0.
CATCH cx_root.
- lcx_exception=>raise( 'DDLS error writing TADIR' ).
+ zcx_abapgit_exception=>raise( 'DDLS error writing TADIR' ).
ENDTRY.
lcl_objects_activation=>add_item( ms_item ).
@@ -293,7 +293,7 @@ CLASS lcl_object_ddls IMPLEMENTATION.
ENDIF.
CATCH cx_root.
- lcx_exception=>raise( 'DDLS Jump Error' ).
+ zcx_abapgit_exception=>raise( 'DDLS Jump Error' ).
ENDTRY.
ENDMETHOD. "open_adt_stob
diff --git a/src/zabapgit_object_dial.prog.abap b/src/zabapgit_object_dial.prog.abap
index 1f9dd63f6..f71a0e278 100644
--- a/src/zabapgit_object_dial.prog.abap
+++ b/src/zabapgit_object_dial.prog.abap
@@ -93,7 +93,7 @@ CLASS lcl_object_dial IMPLEMENTATION.
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Error deserializing dialogmodule { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |Error deserializing dialogmodule { ms_item-obj_name }| ).
ENDIF.
" It seems that there's no API for diapar, therefore we manipulate it directly
@@ -157,7 +157,7 @@ CLASS lcl_object_dial IMPLEMENTATION.
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SE35' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SE35' ).
ENDIF.
ENDMETHOD.
@@ -178,7 +178,7 @@ CLASS lcl_object_dial IMPLEMENTATION.
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Error from RS_DIALOG_SHOW, DIAL| ).
+ zcx_abapgit_exception=>raise( |Error from RS_DIALOG_SHOW, DIAL| ).
ENDIF.
ENDMETHOD.
diff --git a/src/zabapgit_object_doct.prog.abap b/src/zabapgit_object_doct.prog.abap
index dccb66670..b10554928 100644
--- a/src/zabapgit_object_doct.prog.abap
+++ b/src/zabapgit_object_doct.prog.abap
@@ -128,7 +128,7 @@ CLASS lcl_object_doct IMPLEMENTATION.
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, DOCT' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, DOCT' ).
ENDIF.
ENDMETHOD. "jump
@@ -150,7 +150,7 @@ CLASS lcl_object_doct IMPLEMENTATION.
ret_code = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DOCU_DEL' ).
+ zcx_abapgit_exception=>raise( 'error from DOCU_DEL' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_docv.prog.abap b/src/zabapgit_object_docv.prog.abap
index 9efd1cec8..d5d8629b0 100644
--- a/src/zabapgit_object_docv.prog.abap
+++ b/src/zabapgit_object_docv.prog.abap
@@ -87,7 +87,7 @@ CLASS lcl_object_docv IMPLEMENTATION.
METHOD lif_object~jump.
- lcx_exception=>raise( 'todo, jump DOCV' ).
+ zcx_abapgit_exception=>raise( 'todo, jump DOCV' ).
ENDMETHOD. "jump
@@ -110,7 +110,7 @@ CLASS lcl_object_docv IMPLEMENTATION.
ret_code = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DOCU_DEL' ).
+ zcx_abapgit_exception=>raise( 'error from DOCU_DEL' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_doma.prog.abap b/src/zabapgit_object_doma.prog.abap
index df967d82f..8bc29586a 100644
--- a/src/zabapgit_object_doma.prog.abap
+++ b/src/zabapgit_object_doma.prog.abap
@@ -34,12 +34,12 @@ CLASS lcl_object_doma DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
serialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_input
is_dd01v TYPE dd01v
it_dd07v TYPE dd07v_tab
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_doma DEFINITION
@@ -124,7 +124,7 @@ CLASS lcl_object_doma IMPLEMENTATION.
object_not_specified = 3
permission_failure = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DD_DELETE_OBJ, DOMA' ).
+ zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, DOMA' ).
ENDIF.
ENDMETHOD. "delete
@@ -151,7 +151,7 @@ CLASS lcl_object_doma IMPLEMENTATION.
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0 OR ls_dd01v IS INITIAL.
- lcx_exception=>raise( 'error from DDIF_DOMA_GET' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_GET' ).
ENDIF.
CLEAR: ls_dd01v-as4user,
@@ -217,7 +217,7 @@ CLASS lcl_object_doma IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_DOMA_PUT' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_PUT' ).
ENDIF.
deserialize_texts( io_xml = io_xml
@@ -331,7 +331,7 @@ CLASS lcl_object_doma IMPLEMENTATION.
ls_dd01v_tmp = is_dd01v.
READ TABLE lt_dd01_texts ASSIGNING WITH KEY ddlanguage = .
IF sy-subrc > 0.
- lcx_exception=>raise( |DD01_TEXTS cannot find lang { } in XML| ).
+ zcx_abapgit_exception=>raise( |DD01_TEXTS cannot find lang { } in XML| ).
ENDIF.
MOVE-CORRESPONDING TO ls_dd01v_tmp.
@@ -359,7 +359,7 @@ CLASS lcl_object_doma IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_DOMA_PUT @TEXTS' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_PUT @TEXTS' ).
ENDIF.
ENDLOOP.
diff --git a/src/zabapgit_object_dtel.prog.abap b/src/zabapgit_object_dtel.prog.abap
index 44d54a9bb..cfa49b27a 100644
--- a/src/zabapgit_object_dtel.prog.abap
+++ b/src/zabapgit_object_dtel.prog.abap
@@ -28,11 +28,11 @@ CLASS lcl_object_dtel DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
serialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_input
is_dd04v TYPE dd04v
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_dtel DEFINITION
@@ -116,7 +116,7 @@ CLASS lcl_object_dtel IMPLEMENTATION.
object_not_specified = 3
permission_failure = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DD_DELETE_OBJ, DTEL' ).
+ zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, DTEL' ).
ENDIF.
ENDMETHOD. "delete
@@ -138,7 +138,7 @@ CLASS lcl_object_dtel IMPLEMENTATION.
AND as4local = 'A'
AND as4vers = '0000'.
IF sy-subrc <> 0 OR ls_dd04v IS INITIAL.
- lcx_exception=>raise( 'Not found in DD04L' ).
+ zcx_abapgit_exception=>raise( 'Not found in DD04L' ).
ENDIF.
SELECT SINGLE * FROM dd04t
@@ -219,7 +219,7 @@ CLASS lcl_object_dtel IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_DTEL_PUT' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_DTEL_PUT' ).
ENDIF.
deserialize_texts( io_xml = io_xml
@@ -308,7 +308,7 @@ CLASS lcl_object_dtel IMPLEMENTATION.
ls_dd04v_tmp = is_dd04v.
READ TABLE lt_dd04_texts ASSIGNING WITH KEY ddlanguage = .
IF sy-subrc > 0.
- lcx_exception=>raise( |DD04_TEXTS cannot find lang { } in XML| ).
+ zcx_abapgit_exception=>raise( |DD04_TEXTS cannot find lang { } in XML| ).
ENDIF.
MOVE-CORRESPONDING TO ls_dd04v_tmp.
CALL FUNCTION 'DDIF_DTEL_PUT'
@@ -323,7 +323,7 @@ CLASS lcl_object_dtel IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_DTEL_PUT @TEXTS' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_DTEL_PUT @TEXTS' ).
ENDIF.
ENDLOOP.
diff --git a/src/zabapgit_object_enho.prog.abap b/src/zabapgit_object_enho.prog.abap
index 03330fda4..f540fb0b6 100644
--- a/src/zabapgit_object_enho.prog.abap
+++ b/src/zabapgit_object_enho.prog.abap
@@ -10,11 +10,11 @@ INTERFACE lif_object_enho.
deserialize
IMPORTING io_xml TYPE REF TO lcl_xml_input
iv_package TYPE devclass
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
serialize
IMPORTING io_xml TYPE REF TO lcl_xml_output
ii_enh_tool TYPE REF TO if_enh_tool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDINTERFACE. "lif_object_enho
@@ -85,7 +85,7 @@ CLASS lcl_object_enho_wdyc IMPLEMENTATION.
lo_wdyconf->if_enh_object~save( ).
lo_wdyconf->if_enh_object~unlock( ).
CATCH cx_enh_root.
- lcx_exception=>raise( 'error deserializing ENHO wdyconf' ).
+ zcx_abapgit_exception=>raise( 'error deserializing ENHO wdyconf' ).
ENDTRY.
ENDMETHOD. "lif_object_enho~deserialize
@@ -223,7 +223,7 @@ CLASS lcl_object_enho_wdyn IMPLEMENTATION.
lo_wdyn->if_enh_object~unlock( ).
CATCH cx_root.
- lcx_exception=>raise( |error deserializing ENHO wdyn { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |error deserializing ENHO wdyn { ms_item-obj_name }| ).
ENDTRY.
ENDMETHOD. "lif_object_enho~deserialize
@@ -252,7 +252,7 @@ CLASS lcl_object_enho_wdyn IMPLEMENTATION.
ig_data = ls_enh_data ).
CATCH cx_enh_not_found.
- lcx_exception=>raise( |error serializing ENHO wdyn { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |error serializing ENHO wdyn { ms_item-obj_name }| ).
ENDTRY.
ENDMETHOD. "lif_object_enho~serialize
@@ -271,19 +271,19 @@ CLASS lcl_object_enho_clif DEFINITION.
deserialize
IMPORTING io_xml TYPE REF TO lcl_xml_input
io_clif TYPE REF TO cl_enh_tool_clif
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
cx_enh_root,
serialize
IMPORTING io_xml TYPE REF TO lcl_xml_output
io_files TYPE REF TO lcl_objects_files
io_clif TYPE REF TO cl_enh_tool_clif
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS: serialize_includes
IMPORTING io_files TYPE REF TO lcl_objects_files
io_clif TYPE REF TO cl_enh_tool_clif
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_enho_clif DEFINITION
*----------------------------------------------------------------------*
@@ -541,7 +541,7 @@ CLASS lcl_object_enho_badi IMPLEMENTATION.
lo_badi->if_enh_object~save( ).
lo_badi->if_enh_object~unlock( ).
CATCH cx_enh_root.
- lcx_exception=>raise( 'error deserializing ENHO badi' ).
+ zcx_abapgit_exception=>raise( 'error deserializing ENHO badi' ).
ENDTRY.
ENDMETHOD. "lif_object_enho~deserialize
@@ -576,12 +576,12 @@ CLASS lcl_object_enho_hook DEFINITION.
METHODS hook_impl_deserialize
IMPORTING it_spaces TYPE ty_spaces_tt
CHANGING ct_impl TYPE enh_hook_impl_it
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS hook_impl_serialize
EXPORTING et_spaces TYPE ty_spaces_tt
CHANGING ct_impl TYPE enh_hook_impl_it
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_enho_hook DEFINITION
@@ -747,7 +747,7 @@ CLASS lcl_object_enho_hook IMPLEMENTATION.
lo_hook_impl->if_enh_object~save( ).
lo_hook_impl->if_enh_object~unlock( ).
CATCH cx_enh_root.
- lcx_exception=>raise( 'error deserializing ENHO hook' ).
+ zcx_abapgit_exception=>raise( 'error deserializing ENHO hook' ).
ENDTRY.
ENDMETHOD. "lif_object_enho~deserialize
@@ -852,7 +852,7 @@ CLASS lcl_object_enho_intf IMPLEMENTATION.
lo_enh_intf->if_enh_object~save( ).
lo_enh_intf->if_enh_object~unlock( ).
CATCH cx_enh_root.
- lcx_exception=>raise( 'error deserializing ENHO interface' ).
+ zcx_abapgit_exception=>raise( 'error deserializing ENHO interface' ).
ENDTRY.
ENDMETHOD. "lif_object_enho~deserialize
@@ -992,7 +992,7 @@ CLASS lcl_object_enho_class IMPLEMENTATION.
lo_enh_class->if_enh_object~save( ).
lo_enh_class->if_enh_object~unlock( ).
CATCH cx_enh_root.
- lcx_exception=>raise( 'error deserializing ENHO class' ).
+ zcx_abapgit_exception=>raise( 'error deserializing ENHO class' ).
ENDTRY.
ENDMETHOD. "lif_object_enho~deserialize
@@ -1082,7 +1082,7 @@ CLASS lcl_object_enho_fugr IMPLEMENTATION.
lo_fugrdata->if_enh_object~unlock( ).
CATCH cx_enh_root.
- lcx_exception=>raise( |error deserializing ENHO fugrdata { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |error deserializing ENHO fugrdata { ms_item-obj_name }| ).
ENDTRY.
ENDMETHOD. "lif_object_enho~deserialize
@@ -1116,7 +1116,7 @@ CLASS lcl_object_enho_fugr IMPLEMENTATION.
ENDLOOP.
CATCH cx_enh_not_found.
- lcx_exception=>raise( |error deserializing ENHO fugrdata { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |error deserializing ENHO fugrdata { ms_item-obj_name }| ).
ENDTRY.
io_xml->add( iv_name = 'TOOL'
@@ -1149,7 +1149,7 @@ CLASS lcl_object_enho DEFINITION INHERITING FROM lcl_objects_super FINAL.
RETURNING
VALUE(ri_enho) TYPE REF TO lif_object_enho
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
ENDCLASS. "lcl_object_enho DEFINITION
@@ -1206,7 +1206,7 @@ CLASS lcl_object_enho IMPLEMENTATION.
enhancement_id = lv_enh_id
bypassing_buffer = abap_true ).
CATCH cx_enh_root.
- lcx_exception=>raise( 'Error from CL_ENH_FACTORY' ).
+ zcx_abapgit_exception=>raise( 'Error from CL_ENH_FACTORY' ).
ENDTRY.
li_enho = factory( li_enh_tool->get_tool( ) ).
@@ -1255,7 +1255,7 @@ CLASS lcl_object_enho IMPLEMENTATION.
is_item = ms_item
io_files = mo_files.
WHEN OTHERS.
- lcx_exception=>raise( |Unsupported ENHO type { iv_tool }| ).
+ zcx_abapgit_exception=>raise( |Unsupported ENHO type { iv_tool }| ).
ENDCASE.
ENDMETHOD. "factory
@@ -1297,7 +1297,7 @@ CLASS lcl_object_enho IMPLEMENTATION.
li_enh_object->save( ).
li_enh_object->unlock( ).
CATCH cx_enh_root.
- lcx_exception=>raise( 'Error deleting ENHO' ).
+ zcx_abapgit_exception=>raise( 'Error deleting ENHO' ).
ENDTRY.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_enhs.prog.abap b/src/zabapgit_object_enhs.prog.abap
index 8eacc7b07..91aeecc17 100644
--- a/src/zabapgit_object_enhs.prog.abap
+++ b/src/zabapgit_object_enhs.prog.abap
@@ -95,7 +95,7 @@ CLASS lcl_object_enhs IMPLEMENTATION.
CATCH cx_enh_root INTO lx_root.
lv_message = `Error occured while deserializing EHNS: `
&& lx_root->get_text( ) ##NO_TEXT.
- lcx_exception=>raise( lv_message ).
+ zcx_abapgit_exception=>raise( lv_message ).
ENDTRY.
ENDMETHOD. "deserialize
@@ -136,7 +136,7 @@ CLASS lcl_object_enhs IMPLEMENTATION.
iv_name = 'BADI_DATA' ).
CATCH cx_enh_root INTO lx_root.
- lcx_exception=>raise( `Error occured while serializing EHNS: `
+ zcx_abapgit_exception=>raise( `Error occured while serializing EHNS: `
&& lx_root->get_text( ) ) ##NO_TEXT.
ENDTRY.
@@ -190,7 +190,7 @@ CLASS lcl_object_enhs IMPLEMENTATION.
ENDIF.
lo_badidef_tool->if_enh_object~unlock( ).
CATCH cx_enh_root INTO lx_root.
- lcx_exception=>raise( `Error occured while deleting EHNS: `
+ zcx_abapgit_exception=>raise( `Error occured while deleting EHNS: `
&& lx_root->get_text( ) ) ##NO_TEXT.
ENDTRY.
diff --git a/src/zabapgit_object_enqu.prog.abap b/src/zabapgit_object_enqu.prog.abap
index e0127a955..ee4fd8400 100644
--- a/src/zabapgit_object_enqu.prog.abap
+++ b/src/zabapgit_object_enqu.prog.abap
@@ -96,7 +96,7 @@ CLASS lcl_object_enqu IMPLEMENTATION.
object_not_specified = 3
permission_failure = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DD_DELETE_OBJ, ENQU' ).
+ zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, ENQU' ).
ENDIF.
ENDMETHOD. "delete
@@ -125,7 +125,7 @@ CLASS lcl_object_enqu IMPLEMENTATION.
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_ENQU_GET' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_ENQU_GET' ).
ENDIF.
IF ls_dd25v IS INITIAL.
RETURN. " does not exist in system
@@ -178,7 +178,7 @@ CLASS lcl_object_enqu IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_ENQU_PUT' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_ENQU_PUT' ).
ENDIF.
lcl_objects_activation=>add_item( ms_item ).
diff --git a/src/zabapgit_object_ensc.prog.abap b/src/zabapgit_object_ensc.prog.abap
index 5b5ba51c5..4c764c9df 100644
--- a/src/zabapgit_object_ensc.prog.abap
+++ b/src/zabapgit_object_ensc.prog.abap
@@ -80,7 +80,7 @@ CLASS lcl_object_ensc IMPLEMENTATION.
CATCH cx_enh_root INTO lx_root.
lv_message = `Error occured while deserializing ENSC: `
&& lx_root->get_text( ) ##NO_TEXT.
- lcx_exception=>raise( lv_message ).
+ zcx_abapgit_exception=>raise( lv_message ).
ENDTRY.
ENDMETHOD. "deserialize
@@ -124,7 +124,7 @@ CLASS lcl_object_ensc IMPLEMENTATION.
CATCH cx_enh_root INTO lx_root.
lv_message = `Error occured while serializing ENSC: `
&& lx_root->get_text( ) ##NO_TEXT.
- lcx_exception=>raise( lv_message ).
+ zcx_abapgit_exception=>raise( lv_message ).
ENDTRY.
ENDMETHOD. "serialize
@@ -170,7 +170,7 @@ CLASS lcl_object_ensc IMPLEMENTATION.
CATCH cx_enh_root INTO lx_root.
lv_message = `Error occured while deleting ENSC: `
&& lx_root->get_text( ) ##NO_TEXT.
- lcx_exception=>raise( lv_message ).
+ zcx_abapgit_exception=>raise( lv_message ).
ENDTRY.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_form.prog.abap b/src/zabapgit_object_form.prog.abap
index 63b5a6c32..c14faa64e 100644
--- a/src/zabapgit_object_form.prog.abap
+++ b/src/zabapgit_object_form.prog.abap
@@ -57,7 +57,7 @@ CLASS lcl_object_form DEFINITION INHERITING FROM lcl_objects_super FINAL.
RETURNING
VALUE(et_lines) TYPE lcl_object_form=>tyt_lines
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
METHODS _clear_changed_fields
CHANGING
@@ -68,7 +68,7 @@ CLASS lcl_object_form DEFINITION INHERITING FROM lcl_objects_super FINAL.
is_form_data TYPE lcl_object_form=>tys_form_data
it_lines TYPE lcl_object_form=>tyt_lines
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
METHODS _find_form
IMPORTING
diff --git a/src/zabapgit_object_fugr.prog.abap b/src/zabapgit_object_fugr.prog.abap
index d6a779652..5eac56703 100644
--- a/src/zabapgit_object_fugr.prog.abap
+++ b/src/zabapgit_object_fugr.prog.abap
@@ -37,45 +37,45 @@ CLASS lcl_object_fugr DEFINITION INHERITING FROM lcl_objects_program FINAL.
METHODS main_name
RETURNING VALUE(rv_program) TYPE program
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS functions
RETURNING VALUE(rt_functab) TYPE ty_rs38l_incl_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS includes
RETURNING VALUE(rt_includes) TYPE rso_t_objnm
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS serialize_functions
RETURNING VALUE(rt_functions) TYPE ty_function_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS deserialize_functions
IMPORTING it_functions TYPE ty_function_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS serialize_xml
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS deserialize_xml
IMPORTING io_xml TYPE REF TO lcl_xml_input
iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS serialize_includes
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS deserialize_includes
IMPORTING io_xml TYPE REF TO lcl_xml_input
iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS are_exceptions_class_based
IMPORTING iv_function_name TYPE rs38l_fnam
RETURNING VALUE(rv_return) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_fugr DEFINITION
@@ -146,7 +146,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
no_program = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RS_GET_ALL_INCLUDES' ).
+ zcx_abapgit_exception=>raise( 'Error from RS_GET_ALL_INCLUDES' ).
ENDIF.
SELECT unam AS user udat AS date utime AS time FROM reposrc
@@ -231,7 +231,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
OTHERS = 12.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from FUNCTION_INCLUDE_SPLIT' ).
+ zcx_abapgit_exception=>raise( 'error from FUNCTION_INCLUDE_SPLIT' ).
ENDIF.
CALL FUNCTION 'FUNCTION_EXISTS'
@@ -252,7 +252,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
error_message = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from FUNCTION_DELETE' ).
+ zcx_abapgit_exception=>raise( 'error from FUNCTION_DELETE' ).
ENDIF.
ENDIF.
@@ -289,7 +289,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
canceled_in_corr = 10
OTHERS = 11.
IF sy-subrc <> 0.
- lcx_exception=>raise( |error from RS_FUNCTIONMODULE_INSERT: {
+ zcx_abapgit_exception=>raise( |error from RS_FUNCTIONMODULE_INSERT: {
sy-subrc } { sy-msgid }{ sy-msgno }| ).
ENDIF.
@@ -371,7 +371,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
area_length_error = 11
OTHERS = 12.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from FUNCTION_INCLUDE_SPLIT' ).
+ zcx_abapgit_exception=>raise( 'error from FUNCTION_INCLUDE_SPLIT' ).
ENDIF.
io_xml->read( EXPORTING iv_name = 'AREAT'
@@ -399,7 +399,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
OTHERS = 12.
IF sy-subrc <> 0 AND sy-subrc <> 1 AND sy-subrc <> 3.
* todo, change description
- lcx_exception=>raise( 'error from RS_FUNCTION_POOL_INSERT' ).
+ zcx_abapgit_exception=>raise( 'error from RS_FUNCTION_POOL_INSERT' ).
ENDIF.
ENDMETHOD. "deserialize_xml
@@ -457,7 +457,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
no_program = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RS_GET_ALL_INCLUDES' ).
+ zcx_abapgit_exception=>raise( 'Error from RS_GET_ALL_INCLUDES' ).
ENDIF.
LOOP AT lt_functab ASSIGNING .
@@ -517,7 +517,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
function_pool_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RS_FUNCTION_POOL_CONTENTS' ).
+ zcx_abapgit_exception=>raise( 'Error from RS_FUNCTION_POOL_CONTENTS' ).
ENDIF.
SORT rt_functab BY funcname ASCENDING.
@@ -554,7 +554,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
area_length_error = 11
OTHERS = 12.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from FUNCTION_INCLUDE_SPLIT' ).
+ zcx_abapgit_exception=>raise( 'Error from FUNCTION_INCLUDE_SPLIT' ).
ENDIF.
CONCATENATE lv_namespace 'SAPL' lv_group INTO rv_program.
@@ -610,7 +610,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
IF sy-subrc = 2.
CONTINUE.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RPY_FUNCTIONMODULE_READ_NEW' ).
+ zcx_abapgit_exception=>raise( 'Error from RPY_FUNCTIONMODULE_READ_NEW' ).
ENDIF.
ls_function-exception_classes = are_exceptions_class_based( -funcname ).
@@ -675,7 +675,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
invalid_name = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from FUNCTION_IMPORT_DOKU' ).
+ zcx_abapgit_exception=>raise( 'Error from FUNCTION_IMPORT_DOKU' ).
ENDIF.
ENDMETHOD.
@@ -775,7 +775,7 @@ CLASS lcl_object_fugr IMPLEMENTATION.
cancelled = 9
OTHERS = 10.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_FUNCTION_POOL_DELETE' ).
+ zcx_abapgit_exception=>raise( 'error from RS_FUNCTION_POOL_DELETE' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_iarp.prog.abap b/src/zabapgit_object_iarp.prog.abap
index 8469d7d5f..500249330 100644
--- a/src/zabapgit_object_iarp.prog.abap
+++ b/src/zabapgit_object_iarp.prog.abap
@@ -18,11 +18,11 @@ CLASS lcl_object_iarp DEFINITION INHERITING FROM lcl_objects_super FINAL.
read
EXPORTING es_attr TYPE w3resoattr
et_parameters TYPE w3resopara_tabletype
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
save
IMPORTING is_attr TYPE w3resoattr
it_parameters TYPE w3resopara_tabletype
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_dtel DEFINITION
@@ -64,7 +64,7 @@ CLASS lcl_object_iarp IMPLEMENTATION.
error_occured = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from w3api_resource~load' ).
+ zcx_abapgit_exception=>raise( 'error from w3api_resource~load' ).
ENDIF.
li_resource->get_attributes( IMPORTING p_attributes = es_attr ).
@@ -150,7 +150,7 @@ CLASS lcl_object_iarp IMPLEMENTATION.
error_occured = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from if_w3_api_resource~load' ).
+ zcx_abapgit_exception=>raise( 'error from if_w3_api_resource~load' ).
ENDIF.
li_resource->if_w3_api_object~set_changeable( abap_true ).
@@ -177,7 +177,7 @@ CLASS lcl_object_iarp IMPLEMENTATION.
IF sy-subrc = 1.
rv_bool = abap_false.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from w3_api_resource~load' ).
+ zcx_abapgit_exception=>raise( 'error from w3_api_resource~load' ).
ELSE.
rv_bool = abap_true.
ENDIF.
diff --git a/src/zabapgit_object_iasp.prog.abap b/src/zabapgit_object_iasp.prog.abap
index ba1bfff00..82ed55ca7 100644
--- a/src/zabapgit_object_iasp.prog.abap
+++ b/src/zabapgit_object_iasp.prog.abap
@@ -18,11 +18,11 @@ CLASS lcl_object_iasp DEFINITION INHERITING FROM lcl_objects_super FINAL.
read
EXPORTING es_attr TYPE w3servattr
et_parameters TYPE w3servpara_tabletype
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
save
IMPORTING is_attr TYPE w3servattr
it_parameters TYPE w3servpara_tabletype
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_dtel DEFINITION
@@ -64,7 +64,7 @@ CLASS lcl_object_iasp IMPLEMENTATION.
error_occured = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from w3api_service~load' ).
+ zcx_abapgit_exception=>raise( 'error from w3api_service~load' ).
ENDIF.
li_service->get_attributes( IMPORTING p_attributes = es_attr ).
@@ -150,7 +150,7 @@ CLASS lcl_object_iasp IMPLEMENTATION.
error_occured = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from if_w3_api_service~load' ).
+ zcx_abapgit_exception=>raise( 'error from if_w3_api_service~load' ).
ENDIF.
li_service->if_w3_api_object~set_changeable( abap_true ).
@@ -177,7 +177,7 @@ CLASS lcl_object_iasp IMPLEMENTATION.
IF sy-subrc = 1.
rv_bool = abap_false.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from w3_api_service~load' ).
+ zcx_abapgit_exception=>raise( 'error from w3_api_service~load' ).
ELSE.
rv_bool = abap_true.
ENDIF.
diff --git a/src/zabapgit_object_iatu.prog.abap b/src/zabapgit_object_iatu.prog.abap
index bd1ce1c75..2f5b582df 100644
--- a/src/zabapgit_object_iatu.prog.abap
+++ b/src/zabapgit_object_iatu.prog.abap
@@ -18,11 +18,11 @@ CLASS lcl_object_iatu DEFINITION INHERITING FROM lcl_objects_super FINAL.
read
EXPORTING es_attr TYPE w3tempattr
ev_source TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
save
IMPORTING is_attr TYPE w3tempattr
iv_source TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_iatu DEFINITION
@@ -65,7 +65,7 @@ CLASS lcl_object_iatu IMPLEMENTATION.
error_occured = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from w3api_template~load' ).
+ zcx_abapgit_exception=>raise( 'error from w3api_template~load' ).
ENDIF.
li_template->get_attributes( IMPORTING p_attributes = es_attr ).
@@ -167,7 +167,7 @@ CLASS lcl_object_iatu IMPLEMENTATION.
error_occured = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from if_w3_api_template~load' ).
+ zcx_abapgit_exception=>raise( 'error from if_w3_api_template~load' ).
ENDIF.
li_template->if_w3_api_object~set_changeable( abap_true ).
@@ -194,7 +194,7 @@ CLASS lcl_object_iatu IMPLEMENTATION.
IF sy-subrc = 1.
rv_bool = abap_false.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from w3_api_template~load' ).
+ zcx_abapgit_exception=>raise( 'error from w3_api_template~load' ).
ELSE.
rv_bool = abap_true.
ENDIF.
diff --git a/src/zabapgit_object_intf.prog.abap b/src/zabapgit_object_intf.prog.abap
index 2cfd0ec6f..ad26a08ad 100644
--- a/src/zabapgit_object_intf.prog.abap
+++ b/src/zabapgit_object_intf.prog.abap
@@ -19,18 +19,18 @@ CLASS lcl_object_intf DEFINITION FINAL INHERITING FROM lcl_objects_program.
METHODS deserialize_abap
IMPORTING io_xml TYPE REF TO lcl_xml_input
iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS deserialize_docu
IMPORTING io_xml TYPE REF TO lcl_xml_input
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
DATA mo_object_oriented_object_fct TYPE REF TO lif_oo_object_fnc.
METHODS serialize_xml
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_intf DEFINITION
@@ -288,7 +288,7 @@ CLASS lcl_oo_interface IMPLEMENTATION.
other = 6
OTHERS = 7.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from SEO_INTERFACE_CREATE_COMPLETE' ).
+ zcx_abapgit_exception=>raise( 'Error from SEO_INTERFACE_CREATE_COMPLETE' ).
ENDIF.
ENDMETHOD.
@@ -313,7 +313,7 @@ CLASS lcl_oo_interface IMPLEMENTATION.
IF sy-subrc = 1.
RETURN. " in case only inactive version exists
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from seo_clif_get' ).
+ zcx_abapgit_exception=>raise( 'error from seo_clif_get' ).
ENDIF.
ENDMETHOD.
@@ -329,7 +329,7 @@ CLASS lcl_oo_interface IMPLEMENTATION.
other = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from SEO_INTERFACE_DELETE_COMPLETE' ).
+ zcx_abapgit_exception=>raise( 'Error from SEO_INTERFACE_DELETE_COMPLETE' ).
ENDIF.
ENDMETHOD.
ENDCLASS.
diff --git a/src/zabapgit_object_jobd.prog.abap b/src/zabapgit_object_jobd.prog.abap
index 94feb8df0..21d167bf9 100644
--- a/src/zabapgit_object_jobd.prog.abap
+++ b/src/zabapgit_object_jobd.prog.abap
@@ -47,7 +47,7 @@ CLASS lcl_object_jobd IMPLEMENTATION.
ex_is_existing = rv_bool.
CATCH cx_root.
- lcx_exception=>raise( |JOBD not supported| ).
+ zcx_abapgit_exception=>raise( |JOBD not supported| ).
ENDTRY.
ENDMETHOD.
@@ -101,7 +101,7 @@ CLASS lcl_object_jobd IMPLEMENTATION.
ig_data = ).
CATCH cx_root.
- lcx_exception=>raise( |Error serializing JOBD| ).
+ zcx_abapgit_exception=>raise( |Error serializing JOBD| ).
ENDTRY.
ENDMETHOD.
@@ -142,7 +142,7 @@ CLASS lcl_object_jobd IMPLEMENTATION.
im_jd_attributes = .
CATCH cx_root.
- lcx_exception=>raise( |Error deserializing JOBD| ).
+ zcx_abapgit_exception=>raise( |Error deserializing JOBD| ).
ENDTRY.
lcl_objects_activation=>add_item( ms_item ).
@@ -164,7 +164,7 @@ CLASS lcl_object_jobd IMPLEMENTATION.
CALL METHOD lo_job_definition->('DELETE_JD').
CATCH cx_root.
- lcx_exception=>raise( |Error deleting JOBD| ).
+ zcx_abapgit_exception=>raise( |Error deleting JOBD| ).
ENDTRY.
ENDMETHOD.
@@ -186,7 +186,7 @@ CLASS lcl_object_jobd IMPLEMENTATION.
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Error from TR_OBJECT_JUMP_TO_TOOL, JOBD| ).
+ zcx_abapgit_exception=>raise( |Error from TR_OBJECT_JUMP_TO_TOOL, JOBD| ).
ENDIF.
ENDMETHOD.
diff --git a/src/zabapgit_object_msag.prog.abap b/src/zabapgit_object_msag.prog.abap
index a152f2093..578e0d32d 100644
--- a/src/zabapgit_object_msag.prog.abap
+++ b/src/zabapgit_object_msag.prog.abap
@@ -24,10 +24,10 @@ CLASS lcl_object_msag DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
serialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_input
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_msag DEFINITION
@@ -92,7 +92,7 @@ CLASS lcl_object_msag IMPLEMENTATION.
no_permission = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RS_DELETE_MESSAGE_ID' ).
+ zcx_abapgit_exception=>raise( 'Error from RS_DELETE_MESSAGE_ID' ).
ENDIF.
ENDMETHOD. "delete
@@ -126,7 +126,7 @@ CLASS lcl_object_msag IMPLEMENTATION.
permission_failure = 02
unknown_objectclass = 03.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RS_CORR_INSERT' ).
+ zcx_abapgit_exception=>raise( 'Error from RS_CORR_INSERT' ).
ENDIF.
SELECT * FROM t100u INTO TABLE lt_before
@@ -136,7 +136,7 @@ CLASS lcl_object_msag IMPLEMENTATION.
DELETE lt_before WHERE msgnr = -msgnr.
MODIFY t100 FROM . "#EC CI_SUBRC
IF sy-subrc <> 0.
- lcx_exception=>raise( 'MSAG: Table T100 modify failed' ).
+ zcx_abapgit_exception=>raise( 'MSAG: Table T100 modify failed' ).
ENDIF.
CLEAR ls_t100u.
MOVE-CORRESPONDING TO ls_t100u ##enh_ok.
@@ -145,7 +145,7 @@ CLASS lcl_object_msag IMPLEMENTATION.
ls_t100u-selfdef = '3'.
MODIFY t100u FROM ls_t100u. "#EC CI_SUBRC
IF sy-subrc <> 0.
- lcx_exception=>raise( 'MSAG: Table T100U modify failed' ).
+ zcx_abapgit_exception=>raise( 'MSAG: Table T100U modify failed' ).
ENDIF.
ENDLOOP.
@@ -156,7 +156,7 @@ CLASS lcl_object_msag IMPLEMENTATION.
ls_t100a-ltime = sy-uzeit.
MODIFY t100a FROM ls_t100a. "#EC CI_SUBRC
IF sy-subrc <> 0.
- lcx_exception=>raise( 'MSAG: Table T100A modify failed' ).
+ zcx_abapgit_exception=>raise( 'MSAG: Table T100A modify failed' ).
ENDIF.
ls_t100t-sprsl = mv_language.
@@ -164,7 +164,7 @@ CLASS lcl_object_msag IMPLEMENTATION.
ls_t100t-stext = ls_t100a-stext.
MODIFY t100t FROM ls_t100t. "#EC CI_SUBRC
IF sy-subrc <> 0.
- lcx_exception=>raise( 'MSAG: Table T100T modify failed' ).
+ zcx_abapgit_exception=>raise( 'MSAG: Table T100T modify failed' ).
ENDIF.
LOOP AT lt_before INTO ls_t100u.
@@ -293,7 +293,7 @@ CLASS lcl_object_msag IMPLEMENTATION.
ls_t100-arbgb = lv_msg_id.
MODIFY t100 FROM ls_t100. "#EC CI_SUBRC
IF sy-subrc <> 0.
- lcx_exception=>raise( 'MSAG: Table T100 modify failed' ).
+ zcx_abapgit_exception=>raise( 'MSAG: Table T100 modify failed' ).
ENDIF.
ENDLOOP.
diff --git a/src/zabapgit_object_nrob.prog.abap b/src/zabapgit_object_nrob.prog.abap
index f42d6eaaf..5a20c1cfc 100644
--- a/src/zabapgit_object_nrob.prog.abap
+++ b/src/zabapgit_object_nrob.prog.abap
@@ -16,7 +16,7 @@ CLASS lcl_object_nrob DEFINITION INHERITING FROM lcl_objects_super FINAL.
PRIVATE SECTION.
METHODS:
delete_intervals IMPORTING iv_object TYPE inri-object
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_nrob DEFINITION
@@ -104,7 +104,7 @@ CLASS lcl_object_nrob IMPLEMENTATION.
IF sy-subrc = 1.
RETURN.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from NUMBER_RANGE_OBJECT_READ' ).
+ zcx_abapgit_exception=>raise( 'error from NUMBER_RANGE_OBJECT_READ' ).
ENDIF.
io_xml->add( iv_name = 'ATTRIBUTES'
@@ -141,7 +141,7 @@ CLASS lcl_object_nrob IMPLEMENTATION.
wrong_indicator = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from NUMBER_RANGE_OBJECT_UPDATE' ).
+ zcx_abapgit_exception=>raise( 'error from NUMBER_RANGE_OBJECT_UPDATE' ).
ENDIF.
CALL FUNCTION 'NUMBER_RANGE_OBJECT_CLOSE'
@@ -150,7 +150,7 @@ CLASS lcl_object_nrob IMPLEMENTATION.
EXCEPTIONS
object_not_initialized = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from NUMBER_RANGE_OBJECT_CLOSE' ).
+ zcx_abapgit_exception=>raise( 'error from NUMBER_RANGE_OBJECT_CLOSE' ).
ENDIF.
tadir_insert( iv_package ).
@@ -183,7 +183,7 @@ CLASS lcl_object_nrob IMPLEMENTATION.
subobject_not_found = 8
OTHERS = 9.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from NUMBER_RANGE_INTERVAL_LIST' ).
+ zcx_abapgit_exception=>raise( 'error from NUMBER_RANGE_INTERVAL_LIST' ).
ENDIF.
IF lines( lt_list ) = 0.
@@ -208,7 +208,7 @@ CLASS lcl_object_nrob IMPLEMENTATION.
object_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0 OR lv_error = abap_true.
- lcx_exception=>raise( 'error from NUMBER_RANGE_INTERVAL_UPDATE' ).
+ zcx_abapgit_exception=>raise( 'error from NUMBER_RANGE_INTERVAL_UPDATE' ).
ENDIF.
CALL FUNCTION 'NUMBER_RANGE_UPDATE_CLOSE'
@@ -219,7 +219,7 @@ CLASS lcl_object_nrob IMPLEMENTATION.
object_not_initialized = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from NUMBER_RANGE_UPDATE_CLOSE' ).
+ zcx_abapgit_exception=>raise( 'error from NUMBER_RANGE_UPDATE_CLOSE' ).
ENDIF.
ENDMETHOD.
@@ -243,7 +243,7 @@ CLASS lcl_object_nrob IMPLEMENTATION.
wrong_indicator = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from NUMBER_RANGE_OBJECT_DELETE' ).
+ zcx_abapgit_exception=>raise( 'error from NUMBER_RANGE_OBJECT_DELETE' ).
ENDIF.
ENDMETHOD. "delete
@@ -279,7 +279,7 @@ CLASS lcl_object_nrob IMPLEMENTATION.
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, NROB' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, NROB' ).
ENDIF.
ENDMETHOD. "jump
diff --git a/src/zabapgit_object_oo_functions.prog.abap b/src/zabapgit_object_oo_functions.prog.abap
index 74a3b048a..b797f4bac 100644
--- a/src/zabapgit_object_oo_functions.prog.abap
+++ b/src/zabapgit_object_oo_functions.prog.abap
@@ -14,7 +14,7 @@ INTERFACE lif_oo_object_fnc.
CHANGING
is_properties TYPE any
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
generate_locals
IMPORTING
is_key TYPE seoclskey
@@ -24,13 +24,13 @@ INTERFACE lif_oo_object_fnc.
it_local_macros TYPE seop_source_string OPTIONAL
it_local_test_classes TYPE seop_source_string OPTIONAL
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
deserialize_source
IMPORTING
is_key TYPE seoclskey
it_source TYPE lif_defs=>ty_string_tt
RAISING
- lcx_exception
+ zcx_abapgit_exception
cx_sy_dyn_call_error,
insert_text_pool
IMPORTING
@@ -38,7 +38,7 @@ INTERFACE lif_oo_object_fnc.
it_text_pool TYPE textpool_table
iv_language TYPE spras
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
update_descriptions
IMPORTING
is_key TYPE seoclskey
@@ -47,27 +47,27 @@ INTERFACE lif_oo_object_fnc.
IMPORTING
is_item TYPE lif_defs=>ty_item
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
create_sotr
IMPORTING
iv_package TYPE devclass
it_sotr TYPE lif_defs=>ty_sotr_tt
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
create_documentation
IMPORTING
it_lines TYPE tlinetab
iv_object_name TYPE dokhl-object
iv_language TYPE spras
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
get_includes
IMPORTING
iv_object_name TYPE sobj_name
RETURNING
VALUE(rt_includes) TYPE ty_includes_tt
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
exists
IMPORTING
iv_object_name TYPE seoclskey
@@ -80,7 +80,7 @@ INTERFACE lif_oo_object_fnc.
RETURNING
VALUE(rt_source) TYPE lif_defs=>ty_string_tt
RAISING
- lcx_exception
+ zcx_abapgit_exception
cx_sy_dyn_call_error,
get_skip_test_classes
RETURNING
@@ -91,14 +91,14 @@ INTERFACE lif_oo_object_fnc.
RETURNING
VALUE(rs_class_properties) TYPE vseoclass
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
get_interface_properties
IMPORTING
is_interface_key TYPE seoclskey
RETURNING
VALUE(rs_interface_properties) TYPE vseointerf
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
read_text_pool
IMPORTING
iv_class_name TYPE seoclsname
@@ -117,7 +117,7 @@ INTERFACE lif_oo_object_fnc.
RETURNING
VALUE(rt_sotr) TYPE lif_defs=>ty_sotr_tt
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
read_descriptions
IMPORTING
iv_obejct_name TYPE seoclsname
@@ -127,7 +127,7 @@ INTERFACE lif_oo_object_fnc.
IMPORTING
is_deletion_key TYPE seoclskey
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
read_superclass
IMPORTING
iv_classname TYPE seoclsname
@@ -145,7 +145,7 @@ CLASS lcl_oo_serializer DEFINITION.
RETURNING
VALUE(rt_source) TYPE lif_defs=>ty_string_tt
RAISING
- lcx_exception
+ zcx_abapgit_exception
cx_sy_dyn_call_error,
are_test_classes_skipped
RETURNING
@@ -153,33 +153,33 @@ CLASS lcl_oo_serializer DEFINITION.
METHODS serialize_locals_imp
IMPORTING is_clskey TYPE seoclskey
RETURNING VALUE(rt_source) TYPE lif_defs=>ty_string_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS serialize_locals_def
IMPORTING is_clskey TYPE seoclskey
RETURNING VALUE(rt_source) TYPE lif_defs=>ty_string_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS serialize_testclasses
IMPORTING
is_clskey TYPE seoclskey
RETURNING VALUE(rt_source) TYPE lif_defs=>ty_string_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS serialize_macros
IMPORTING is_clskey TYPE seoclskey
RETURNING VALUE(rt_source) TYPE lif_defs=>ty_string_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
DATA mv_skip_testclass TYPE abap_bool.
METHODS serialize_abap_old
IMPORTING is_clskey TYPE seoclskey
RETURNING VALUE(rt_source) TYPE lif_defs=>ty_string_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS serialize_abap_new
IMPORTING is_clskey TYPE seoclskey
RETURNING VALUE(rt_source) TYPE lif_defs=>ty_string_tt
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
cx_sy_dyn_call_error.
METHODS remove_signatures
CHANGING ct_source TYPE lif_defs=>ty_string_tt.
@@ -214,7 +214,7 @@ CLASS lcl_oo_serializer IMPLEMENTATION.
class_not_existing = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from CL_OO_SOURCE' ).
+ zcx_abapgit_exception=>raise( 'error from CL_OO_SOURCE' ).
ENDIF.
lo_source->read( 'A' ).
@@ -401,12 +401,12 @@ CLASS lcl_oo_base DEFINITION ABSTRACT.
METHODS deserialize_abap_source_old
IMPORTING is_clskey TYPE seoclskey
it_source TYPE lif_defs=>ty_string_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS deserialize_abap_source_new
IMPORTING is_clskey TYPE seoclskey
it_source TYPE lif_defs=>ty_string_tt
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
cx_sy_dyn_call_error.
ENDCLASS.
@@ -444,7 +444,7 @@ CLASS lcl_oo_base IMPLEMENTATION.
class_not_existing = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from CL_OO_SOURCE' ).
+ zcx_abapgit_exception=>raise( 'error from CL_OO_SOURCE' ).
ENDIF.
TRY.
@@ -453,9 +453,9 @@ CLASS lcl_oo_base IMPLEMENTATION.
lo_source->save( ).
lo_source->access_permission( seok_access_free ).
CATCH cx_oo_access_permission.
- lcx_exception=>raise( 'permission error' ).
+ zcx_abapgit_exception=>raise( 'permission error' ).
CATCH cx_oo_source_save_failure.
- lcx_exception=>raise( 'save failure' ).
+ zcx_abapgit_exception=>raise( 'save failure' ).
ENDTRY.
ENDMETHOD.
@@ -477,7 +477,7 @@ CLASS lcl_oo_base IMPLEMENTATION.
TRY.
CALL METHOD lo_source->('IF_OO_CLIF_SOURCE~LOCK').
CATCH cx_oo_access_permission.
- lcx_exception=>raise( 'source_new, access permission exception' ).
+ zcx_abapgit_exception=>raise( 'source_new, access permission exception' ).
ENDTRY.
CALL METHOD lo_source->('IF_OO_CLIF_SOURCE~SET_SOURCE')
@@ -519,7 +519,7 @@ CLASS lcl_oo_base IMPLEMENTATION.
ret_code = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DOCU_UPD' ).
+ zcx_abapgit_exception=>raise( 'error from DOCU_UPD' ).
ENDIF.
ENDMETHOD.
diff --git a/src/zabapgit_object_para.prog.abap b/src/zabapgit_object_para.prog.abap
index be4d3613b..110230157 100644
--- a/src/zabapgit_object_para.prog.abap
+++ b/src/zabapgit_object_para.prog.abap
@@ -104,7 +104,7 @@ CLASS lcl_object_para IMPLEMENTATION.
unknown_objectclass = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_CORR_INSERT, PARA' ).
+ zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT, PARA' ).
ENDIF.
MODIFY tpara FROM ls_tpara. "#EC CI_SUBRC
@@ -128,7 +128,7 @@ CLASS lcl_object_para IMPLEMENTATION.
cancelled = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_PRAMETER_DELETE' ).
+ zcx_abapgit_exception=>raise( 'error from RS_PRAMETER_DELETE' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_pinf.prog.abap b/src/zabapgit_object_pinf.prog.abap
index 9a5d3c41b..5b1878e36 100644
--- a/src/zabapgit_object_pinf.prog.abap
+++ b/src/zabapgit_object_pinf.prog.abap
@@ -25,18 +25,18 @@ CLASS lcl_object_pinf DEFINITION INHERITING FROM lcl_objects_super FINAL.
IMPORTING is_pinf TYPE ty_pinf
iv_package TYPE devclass
RETURNING VALUE(ri_interface) TYPE REF TO if_package_interface
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
delete_elements
IMPORTING ii_interface TYPE REF TO if_package_interface
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
update_attributes
IMPORTING is_pinf TYPE ty_pinf
ii_interface TYPE REF TO if_package_interface
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
update_elements
IMPORTING is_pinf TYPE ty_pinf
ii_interface TYPE REF TO if_package_interface
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_PINF DEFINITION
@@ -266,7 +266,7 @@ CLASS lcl_object_pinf IMPLEMENTATION.
unexpected_error = 4
OTHERS = 7 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error creating new package interface' ).
+ zcx_abapgit_exception=>raise( 'error creating new package interface' ).
ENDIF.
ELSE.
cl_package_interface=>load_package_interface(
@@ -283,7 +283,7 @@ CLASS lcl_object_pinf IMPLEMENTATION.
object_locked_and_modified = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error loading package interface' ).
+ zcx_abapgit_exception=>raise( 'error loading package interface' ).
ENDIF.
ENDIF.
@@ -329,7 +329,7 @@ CLASS lcl_object_pinf IMPLEMENTATION.
object_locked_and_modified = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error loading package interface, delete' ).
+ zcx_abapgit_exception=>raise( 'error loading package interface, delete' ).
ENDIF.
* elements must be deleted before the package interface
diff --git a/src/zabapgit_object_prag.prog.abap b/src/zabapgit_object_prag.prog.abap
index 326d836ee..6d9e31902 100644
--- a/src/zabapgit_object_prag.prog.abap
+++ b/src/zabapgit_object_prag.prog.abap
@@ -18,15 +18,15 @@ CLASS lcl_object_prag DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
_raise_pragma_not_exists
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
_raise_pragma_exists
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
_raise_pragma_enqueue
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
ENDCLASS.
@@ -157,19 +157,19 @@ CLASS lcl_object_prag IMPLEMENTATION.
METHOD _raise_pragma_enqueue.
- lcx_exception=>raise( |Pragma { ms_item-obj_name } enqueue error| ).
+ zcx_abapgit_exception=>raise( |Pragma { ms_item-obj_name } enqueue error| ).
ENDMETHOD.
METHOD _raise_pragma_exists.
- lcx_exception=>raise( |Pragma { ms_item-obj_name } exists| ).
+ zcx_abapgit_exception=>raise( |Pragma { ms_item-obj_name } exists| ).
ENDMETHOD.
METHOD _raise_pragma_not_exists.
- lcx_exception=>raise( |Pragma { ms_item-obj_name } doesn't exist| ).
+ zcx_abapgit_exception=>raise( |Pragma { ms_item-obj_name } doesn't exist| ).
ENDMETHOD.
diff --git a/src/zabapgit_object_prog.prog.abap b/src/zabapgit_object_prog.prog.abap
index 76867444d..5e19022b3 100644
--- a/src/zabapgit_object_prog.prog.abap
+++ b/src/zabapgit_object_prog.prog.abap
@@ -23,10 +23,10 @@ CLASS lcl_object_prog DEFINITION INHERITING FROM lcl_objects_program FINAL.
METHODS:
serialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_input
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_prog DEFINITION
@@ -98,7 +98,7 @@ CLASS lcl_object_prog IMPLEMENTATION.
reject_deletion = 4
OTHERS = 5.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DELETE_PROGRAM' ).
+ zcx_abapgit_exception=>raise( |Error from RS_DELETE_PROGRAM: { sy-subrc }| ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_sfbf.prog.abap b/src/zabapgit_object_sfbf.prog.abap
index c9b1147d4..319e2e6d5 100644
--- a/src/zabapgit_object_sfbf.prog.abap
+++ b/src/zabapgit_object_sfbf.prog.abap
@@ -16,7 +16,7 @@ CLASS lcl_object_sfbf DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
get
RETURNING VALUE(ro_bf) TYPE REF TO cl_sfw_bf
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_SFBF DEFINITION
@@ -83,7 +83,7 @@ CLASS lcl_object_sfbf IMPLEMENTATION.
ro_bf->free( ).
ro_bf = cl_sfw_bf=>get_bf( lv_bf ).
CATCH cx_pak_invalid_data cx_pak_invalid_state cx_pak_not_authorized.
- lcx_exception=>raise( 'Error from CL_SFW_BF=>GET_BF' ).
+ zcx_abapgit_exception=>raise( 'Error from CL_SFW_BF=>GET_BF' ).
ENDTRY.
ENDMETHOD.
@@ -190,7 +190,7 @@ CLASS lcl_object_sfbf IMPLEMENTATION.
TRY.
lo_bf = cl_sfw_bf=>create_bf( lv_bf ).
CATCH cx_pak_not_authorized cx_pak_invalid_state cx_pak_invalid_data.
- lcx_exception=>raise( 'error in CL_SFW_BF=>CREATE_BF' ).
+ zcx_abapgit_exception=>raise( 'error in CL_SFW_BF=>CREATE_BF' ).
ENDTRY.
ls_header-author = sy-uname.
@@ -232,7 +232,7 @@ CLASS lcl_object_sfbf IMPLEMENTATION.
READ TABLE lt_msgtab WITH KEY severity = 'E' TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
- lcx_exception=>raise( 'Error deleting SFBF' ).
+ zcx_abapgit_exception=>raise( 'Error deleting SFBF' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_sfbs.prog.abap b/src/zabapgit_object_sfbs.prog.abap
index 10d8a8737..c44e48927 100644
--- a/src/zabapgit_object_sfbs.prog.abap
+++ b/src/zabapgit_object_sfbs.prog.abap
@@ -16,7 +16,7 @@ CLASS lcl_object_sfbs DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
get
RETURNING VALUE(ro_bfs) TYPE REF TO cl_sfw_bfs
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_SFBS DEFINITION
@@ -57,7 +57,7 @@ CLASS lcl_object_sfbs IMPLEMENTATION.
ro_bfs->free( ).
ro_bfs = cl_sfw_bfs=>get_bfs( lv_bfset ).
CATCH cx_pak_invalid_data cx_pak_invalid_state cx_pak_not_authorized.
- lcx_exception=>raise( 'Error from CL_SFW_BFS=>GET_BFS' ).
+ zcx_abapgit_exception=>raise( 'Error from CL_SFW_BFS=>GET_BFS' ).
ENDTRY.
ENDMETHOD.
@@ -168,7 +168,7 @@ CLASS lcl_object_sfbs IMPLEMENTATION.
TRY.
lo_bfs = cl_sfw_bfs=>create_bfs( lv_bfset ).
CATCH cx_pak_not_authorized cx_pak_invalid_state cx_pak_invalid_data.
- lcx_exception=>raise( 'error in CL_SFW_BFS=>CREATE_BFS' ).
+ zcx_abapgit_exception=>raise( 'error in CL_SFW_BFS=>CREATE_BFS' ).
ENDTRY.
ls_header-author = sy-uname.
@@ -206,7 +206,7 @@ CLASS lcl_object_sfbs IMPLEMENTATION.
READ TABLE lt_msgtab WITH KEY severity = 'E' TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
- lcx_exception=>raise( 'Error deleting SFBS' ).
+ zcx_abapgit_exception=>raise( 'Error deleting SFBS' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_sfpf.prog.abap b/src/zabapgit_object_sfpf.prog.abap
index f99691927..e6ed1e9de 100644
--- a/src/zabapgit_object_sfpf.prog.abap
+++ b/src/zabapgit_object_sfpf.prog.abap
@@ -21,10 +21,10 @@ CLASS lcl_object_sfpf DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
load
RETURNING VALUE(ri_wb_form) TYPE REF TO if_fp_wb_form
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
form_to_xstring
RETURNING VALUE(rv_xstr) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_doma DEFINITION
@@ -96,7 +96,7 @@ CLASS lcl_object_sfpf IMPLEMENTATION.
TRY.
lo_wb_form->delete( lv_name ).
CATCH cx_fp_api.
- lcx_exception=>raise( 'SFPI error, delete' ).
+ zcx_abapgit_exception=>raise( 'SFPI error, delete' ).
ENDTRY.
ENDMETHOD. "delete
@@ -111,7 +111,7 @@ CLASS lcl_object_sfpf IMPLEMENTATION.
TRY.
ri_wb_form = cl_fp_wb_form=>load( lv_name ).
CATCH cx_fp_api.
- lcx_exception=>raise( 'SFPF error, load' ).
+ zcx_abapgit_exception=>raise( 'SFPF error, load' ).
ENDTRY.
ENDMETHOD.
@@ -127,7 +127,7 @@ CLASS lcl_object_sfpf IMPLEMENTATION.
li_fp_form ?= li_wb_form->get_object( ).
rv_xstr = cl_fp_helper=>convert_form_to_xstring( li_fp_form ).
CATCH cx_fp_api.
- lcx_exception=>raise( 'SFPF error, form_to_xstring' ).
+ zcx_abapgit_exception=>raise( 'SFPF error, form_to_xstring' ).
ENDTRY.
ENDMETHOD.
@@ -214,7 +214,7 @@ CLASS lcl_object_sfpf IMPLEMENTATION.
li_wb_object->save( ).
li_wb_object->free( ).
CATCH cx_fp_api.
- lcx_exception=>raise( 'SFPF error, deserialize' ).
+ zcx_abapgit_exception=>raise( 'SFPF error, deserialize' ).
ENDTRY.
lcl_objects_activation=>add_item( ms_item ).
diff --git a/src/zabapgit_object_sfpi.prog.abap b/src/zabapgit_object_sfpi.prog.abap
index d4f441775..37cf38244 100644
--- a/src/zabapgit_object_sfpi.prog.abap
+++ b/src/zabapgit_object_sfpi.prog.abap
@@ -17,10 +17,10 @@ CLASS lcl_object_sfpi DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
load
RETURNING VALUE(ri_wb_interface) TYPE REF TO if_fp_wb_interface
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
interface_to_xstring
RETURNING VALUE(rv_xstr) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_doma DEFINITION
@@ -92,7 +92,7 @@ CLASS lcl_object_sfpi IMPLEMENTATION.
TRY.
lo_wb_interface->delete( lv_name ).
CATCH cx_fp_api.
- lcx_exception=>raise( 'SFPI error, delete' ).
+ zcx_abapgit_exception=>raise( 'SFPI error, delete' ).
ENDTRY.
ENDMETHOD. "delete
@@ -107,7 +107,7 @@ CLASS lcl_object_sfpi IMPLEMENTATION.
TRY.
ri_wb_interface = cl_fp_wb_interface=>load( lv_name ).
CATCH cx_fp_api.
- lcx_exception=>raise( 'SFPI error, load' ).
+ zcx_abapgit_exception=>raise( 'SFPI error, load' ).
ENDTRY.
ENDMETHOD.
@@ -123,7 +123,7 @@ CLASS lcl_object_sfpi IMPLEMENTATION.
li_fp_interface ?= li_wb_interface->get_object( ).
rv_xstr = cl_fp_helper=>convert_interface_to_xstring( li_fp_interface ).
CATCH cx_fp_api.
- lcx_exception=>raise( 'SFPI error, interface_to_xstring' ).
+ zcx_abapgit_exception=>raise( 'SFPI error, interface_to_xstring' ).
ENDTRY.
ENDMETHOD.
@@ -160,7 +160,7 @@ CLASS lcl_object_sfpi IMPLEMENTATION.
li_wb_object->save( ).
li_wb_object->free( ).
CATCH cx_fp_api.
- lcx_exception=>raise( 'SFPI error, deserialize' ).
+ zcx_abapgit_exception=>raise( 'SFPI error, deserialize' ).
ENDTRY.
lcl_objects_activation=>add_item( ms_item ).
diff --git a/src/zabapgit_object_sfsw.prog.abap b/src/zabapgit_object_sfsw.prog.abap
index b6ca85aef..79c838624 100644
--- a/src/zabapgit_object_sfsw.prog.abap
+++ b/src/zabapgit_object_sfsw.prog.abap
@@ -16,7 +16,7 @@ CLASS lcl_object_sfsw DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
get
RETURNING VALUE(ro_switch) TYPE REF TO cl_sfw_sw
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_sfsw DEFINITION
@@ -80,7 +80,7 @@ CLASS lcl_object_sfsw IMPLEMENTATION.
TRY.
ro_switch = cl_sfw_sw=>get_switch_from_db( lv_switch_id ).
CATCH cx_pak_invalid_data cx_pak_invalid_state cx_pak_not_authorized.
- lcx_exception=>raise( 'Error from CL_SFW_SW=>GET_SWITCH' ).
+ zcx_abapgit_exception=>raise( 'Error from CL_SFW_SW=>GET_SWITCH' ).
ENDTRY.
ENDMETHOD.
@@ -157,7 +157,7 @@ CLASS lcl_object_sfsw IMPLEMENTATION.
TRY.
lo_switch = cl_sfw_sw=>create_switch( lv_switch_id ).
CATCH cx_pak_not_authorized cx_pak_invalid_state cx_pak_invalid_data.
- lcx_exception=>raise( 'error in CL_SFW_SW=>CREATE_SWITCH' ).
+ zcx_abapgit_exception=>raise( 'error in CL_SFW_SW=>CREATE_SWITCH' ).
ENDTRY.
ls_header-author = sy-uname.
@@ -178,7 +178,7 @@ CLASS lcl_object_sfsw IMPLEMENTATION.
OTHERS = 2 ).
SET PARAMETER ID 'EUK' FIELD ''.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error in CL_SFW_SW->SAVE_ALL' ).
+ zcx_abapgit_exception=>raise( 'error in CL_SFW_SW->SAVE_ALL' ).
ENDIF.
@@ -198,7 +198,7 @@ CLASS lcl_object_sfsw IMPLEMENTATION.
lo_switch->set_delete_flag( lv_switch_id ).
lo_switch->save_all( ).
CATCH cx_pak_invalid_data cx_pak_invalid_state cx_pak_not_authorized.
- lcx_exception=>raise( 'Error deleting Switch' ).
+ zcx_abapgit_exception=>raise( 'Error deleting Switch' ).
ENDTRY.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_shi3.prog.abap b/src/zabapgit_object_shi3.prog.abap
index 7faadf630..243b3441c 100644
--- a/src/zabapgit_object_shi3.prog.abap
+++ b/src/zabapgit_object_shi3.prog.abap
@@ -21,7 +21,7 @@ CLASS lcl_object_shi3 DEFINITION INHERITING FROM lcl_objects_super FINAL.
DATA: mv_tree_id TYPE ttree-id.
METHODS jump_se43
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS clear_fields
CHANGING cs_head TYPE ttree
@@ -94,7 +94,7 @@ CLASS lcl_object_shi3 IMPLEMENTATION.
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SHI3' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SHI3' ).
ENDIF.
ENDMETHOD. "jump_se43
@@ -133,7 +133,7 @@ CLASS lcl_object_shi3 IMPLEMENTATION.
canceled = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from BMENU_DELETE_TREE, SHI3' ).
+ zcx_abapgit_exception=>raise( 'error from BMENU_DELETE_TREE, SHI3' ).
ENDIF.
ENDMETHOD. "delete
@@ -245,7 +245,7 @@ CLASS lcl_object_shi3 IMPLEMENTATION.
no_nodes_given = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from STREE_HIERARCHY_SAVE, SHI3' ).
+ zcx_abapgit_exception=>raise( 'Error from STREE_HIERARCHY_SAVE, SHI3' ).
ENDIF.
ENDMETHOD. "deserialize
diff --git a/src/zabapgit_object_shlp.prog.abap b/src/zabapgit_object_shlp.prog.abap
index 8e1198c70..b07c4b9a9 100644
--- a/src/zabapgit_object_shlp.prog.abap
+++ b/src/zabapgit_object_shlp.prog.abap
@@ -92,7 +92,7 @@ CLASS lcl_object_shlp IMPLEMENTATION.
object_not_specified = 3
permission_failure = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DD_DELETE_OBJ, SHLP' ).
+ zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, SHLP' ).
ENDIF.
ENDMETHOD. "delete
@@ -125,7 +125,7 @@ CLASS lcl_object_shlp IMPLEMENTATION.
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_SHLP_GET' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_SHLP_GET' ).
ENDIF.
IF ls_dd30v IS INITIAL.
RETURN. " does not exist in system
@@ -199,7 +199,7 @@ CLASS lcl_object_shlp IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_SHLP_PUT' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_SHLP_PUT' ).
ENDIF.
lcl_objects_activation=>add_item( ms_item ).
diff --git a/src/zabapgit_object_shma.prog.abap b/src/zabapgit_object_shma.prog.abap
index a35a90b4c..cc82a5593 100644
--- a/src/zabapgit_object_shma.prog.abap
+++ b/src/zabapgit_object_shma.prog.abap
@@ -67,7 +67,7 @@ CLASS lcl_object_shma IMPLEMENTATION.
ig_data = ls_area_attributes ).
CATCH cx_root.
- lcx_exception=>raise( |Error serializing SHMA { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |Error serializing SHMA { ms_item-obj_name }| ).
ENDTRY.
ENDMETHOD.
@@ -95,7 +95,7 @@ CLASS lcl_object_shma IMPLEMENTATION.
silent_mode = abap_true.
CATCH cx_root.
- lcx_exception=>raise( |Error serializing SHMA { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |Error serializing SHMA { ms_item-obj_name }| ).
ENDTRY.
ENDMETHOD.
@@ -137,7 +137,7 @@ CLASS lcl_object_shma IMPLEMENTATION.
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Error deleting SHMA { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |Error deleting SHMA { ms_item-obj_name }| ).
ENDIF.
CALL METHOD ('\PROGRAM=SAPMSHM_MONITOR\CLASS=LCL_SHMM')=>('FREE_AREA_BY_NAME')
@@ -157,7 +157,7 @@ CLASS lcl_object_shma IMPLEMENTATION.
appendable = lv_append.
IF lv_request <> lc_request_delete.
- lcx_exception=>raise( |Error deleting SHMA { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |Error deleting SHMA { ms_item-obj_name }| ).
ENDIF.
CALL METHOD lo_cts_if->('INSERT_AREA')
@@ -223,7 +223,7 @@ CLASS lcl_object_shma IMPLEMENTATION.
_collect = ' '.
CATCH cx_root.
- lcx_exception=>raise( |Error deleting SHMA { ms_item-obj_name }| ).
+ zcx_abapgit_exception=>raise( |Error deleting SHMA { ms_item-obj_name }| ).
ENDTRY.
ENDMETHOD.
@@ -259,7 +259,7 @@ CLASS lcl_object_shma IMPLEMENTATION.
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SHMA' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SHMA' ).
ENDIF.
ENDMETHOD.
diff --git a/src/zabapgit_object_sicf.prog.abap b/src/zabapgit_object_sicf.prog.abap
index fc4fd2a78..2a768ef28 100644
--- a/src/zabapgit_object_sicf.prog.abap
+++ b/src/zabapgit_object_sicf.prog.abap
@@ -27,7 +27,7 @@ CLASS lcl_object_sicf DEFINITION INHERITING FROM lcl_objects_super FINAL.
es_icfdocu TYPE icfdocu
et_icfhandler TYPE ty_icfhandler_tt
ev_url TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS insert_sicf
IMPORTING is_icfservice TYPE icfservice
@@ -35,7 +35,7 @@ CLASS lcl_object_sicf DEFINITION INHERITING FROM lcl_objects_super FINAL.
it_icfhandler TYPE ty_icfhandler_tt
iv_package TYPE devclass
iv_url TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS change_sicf
IMPORTING is_icfservice TYPE icfservice
@@ -43,7 +43,7 @@ CLASS lcl_object_sicf DEFINITION INHERITING FROM lcl_objects_super FINAL.
it_icfhandler TYPE ty_icfhandler_tt
iv_package TYPE devclass
iv_parent TYPE icfparguid
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS to_icfhndlist
IMPORTING it_list TYPE ty_icfhandler_tt
@@ -52,7 +52,7 @@ CLASS lcl_object_sicf DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS find_parent
IMPORTING iv_url TYPE string
RETURNING VALUE(rv_parent) TYPE icfparguid
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_sicf DEFINITION
@@ -171,7 +171,7 @@ CLASS lcl_object_sicf IMPLEMENTATION.
no_authority = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'SICF - error from get_info_from_serv' ).
+ zcx_abapgit_exception=>raise( 'SICF - error from get_info_from_serv' ).
ENDIF.
ASSERT lines( lt_serv_info ) = 1.
@@ -261,7 +261,7 @@ CLASS lcl_object_sicf IMPLEMENTATION.
no_authority = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'SICF - error from service_from_url' ).
+ zcx_abapgit_exception=>raise( 'SICF - error from service_from_url' ).
ENDIF.
ENDMETHOD. "find_parent
@@ -322,7 +322,7 @@ CLASS lcl_object_sicf IMPLEMENTATION.
no_authority = 26
OTHERS = 27 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( |SICF - error from insert_node: { sy-subrc }| ).
+ zcx_abapgit_exception=>raise( |SICF - error from insert_node: { sy-subrc }| ).
ENDIF.
ENDMETHOD. "insert_sicf
@@ -388,7 +388,7 @@ CLASS lcl_object_sicf IMPLEMENTATION.
no_authority = 26
OTHERS = 27 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'SICF - error from change_node' ).
+ zcx_abapgit_exception=>raise( 'SICF - error from change_node' ).
ENDIF.
ENDMETHOD. "change_sicf
@@ -409,7 +409,7 @@ CLASS lcl_object_sicf IMPLEMENTATION.
IF ls_icfservice-icfparguid CO '0'.
* not supported by the SAP standard API
- lcx_exception=>raise( 'SICF - cannot delete root node, delete node manually' ).
+ zcx_abapgit_exception=>raise( 'SICF - cannot delete root node, delete node manually' ).
ENDIF.
cl_icf_tree=>if_icf_tree~delete_node(
@@ -431,7 +431,7 @@ CLASS lcl_object_sicf IMPLEMENTATION.
no_authority = 11
OTHERS = 12 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'SICF - error from delete_node' ).
+ zcx_abapgit_exception=>raise( 'SICF - error from delete_node' ).
ENDIF.
ENDMETHOD. "delete
@@ -467,7 +467,7 @@ CLASS lcl_object_sicf IMPLEMENTATION.
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SICF' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SICF' ).
ENDIF.
ENDMETHOD. "jump
diff --git a/src/zabapgit_object_smim.prog.abap b/src/zabapgit_object_smim.prog.abap
index 82b0f89ec..021db426e 100644
--- a/src/zabapgit_object_smim.prog.abap
+++ b/src/zabapgit_object_smim.prog.abap
@@ -21,7 +21,7 @@ CLASS lcl_object_smim DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS find_content
IMPORTING iv_url TYPE string
RETURNING VALUE(rv_content) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS build_filename
IMPORTING iv_filename TYPE string
@@ -31,7 +31,7 @@ CLASS lcl_object_smim DEFINITION INHERITING FROM lcl_objects_super FINAL.
EXPORTING ev_url TYPE string
ev_is_folder TYPE boole_d
RAISING lcx_not_found
- lcx_exception.
+ zcx_abapgit_exception.
ENDCLASS. "lcl_object_smim DEFINITION
@@ -140,7 +140,7 @@ CLASS lcl_object_smim IMPLEMENTATION.
READ TABLE lt_files ASSIGNING WITH KEY filename = lv_filename.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'SMIM, file not found' ).
+ zcx_abapgit_exception=>raise( 'SMIM, file not found' ).
ENDIF.
rv_content = -data.
@@ -198,7 +198,7 @@ CLASS lcl_object_smim IMPLEMENTATION.
permission_failure = 4
OTHERS = 5 ).
IF sy-subrc <> 0 AND sy-subrc <> 2 AND sy-subrc <> 3.
- lcx_exception=>raise( 'error from mime api->get:' && sy-msgv1 ).
+ zcx_abapgit_exception=>raise( 'error from mime api->get:' && sy-msgv1 ).
ENDIF.
lv_filename = get_filename( lv_url ).
@@ -260,7 +260,7 @@ CLASS lcl_object_smim IMPLEMENTATION.
folder_exists = 5
OTHERS = 6 ).
IF sy-subrc <> 5 AND sy-subrc <> 0.
- lcx_exception=>raise( 'error frrom SMIM create_folder' ).
+ zcx_abapgit_exception=>raise( 'error frrom SMIM create_folder' ).
ENDIF.
ELSE.
lv_filename = get_filename( lv_url ).
@@ -292,7 +292,7 @@ CLASS lcl_object_smim IMPLEMENTATION.
is_folder = 7
OTHERS = 8 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SMIM put' ).
+ zcx_abapgit_exception=>raise( 'error from SMIM put' ).
ENDIF.
ENDIF.
@@ -325,7 +325,7 @@ CLASS lcl_object_smim IMPLEMENTATION.
not_found = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from delete' ).
+ zcx_abapgit_exception=>raise( 'error from delete' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_splo.prog.abap b/src/zabapgit_object_splo.prog.abap
index af0407f6c..144725060 100644
--- a/src/zabapgit_object_splo.prog.abap
+++ b/src/zabapgit_object_splo.prog.abap
@@ -116,7 +116,7 @@ CLASS lcl_object_splo IMPLEMENTATION.
ENDMETHOD. "lif_object~exists
METHOD lif_object~jump.
- lcx_exception=>raise( 'todo, jump, SPLO' ).
+ zcx_abapgit_exception=>raise( 'todo, jump, SPLO' ).
ENDMETHOD. "lif_object~jump
METHOD lif_object~compare_to_remote_version.
diff --git a/src/zabapgit_object_ssfo.prog.abap b/src/zabapgit_object_ssfo.prog.abap
index c61e4cd04..29f72f6db 100644
--- a/src/zabapgit_object_ssfo.prog.abap
+++ b/src/zabapgit_object_ssfo.prog.abap
@@ -116,7 +116,7 @@ CLASS lcl_object_ssfo IMPLEMENTATION.
illegal_formtype = 6
OTHERS = 7.
IF sy-subrc <> 0 AND sy-subrc <> 2.
- lcx_exception=>raise( 'Error from FB_DELETE_FORM' ).
+ zcx_abapgit_exception=>raise( 'Error from FB_DELETE_FORM' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_ssst.prog.abap b/src/zabapgit_object_ssst.prog.abap
index e6de02a32..229f47626 100644
--- a/src/zabapgit_object_ssst.prog.abap
+++ b/src/zabapgit_object_ssst.prog.abap
@@ -17,7 +17,7 @@ CLASS lcl_object_ssst DEFINITION INHERITING FROM lcl_objects_super FINAL.
PRIVATE SECTION.
METHODS validate_font
IMPORTING iv_tdfamily TYPE tdfamily
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_ssst DEFINITION
@@ -68,7 +68,7 @@ CLASS lcl_object_ssst IMPLEMENTATION.
SELECT SINGLE tdfamily FROM tfo01 INTO lv_tdfamily
WHERE tdfamily = iv_tdfamily.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Font family not found' ).
+ zcx_abapgit_exception=>raise( 'Font family not found' ).
ENDIF.
ENDMETHOD. "validate_font
@@ -110,7 +110,7 @@ CLASS lcl_object_ssst IMPLEMENTATION.
IF sy-subrc = 2.
RETURN.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SSF_READ_STYLE' ).
+ zcx_abapgit_exception=>raise( 'error from SSF_READ_STYLE' ).
ENDIF.
CLEAR ls_header-version.
@@ -191,7 +191,7 @@ CLASS lcl_object_ssst IMPLEMENTATION.
illegal_language = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SSF_ACTIVATE_STYLE' ).
+ zcx_abapgit_exception=>raise( 'error from SSF_ACTIVATE_STYLE' ).
ENDIF.
ENDIF.
@@ -219,7 +219,7 @@ CLASS lcl_object_ssst IMPLEMENTATION.
illegal_language = 6
OTHERS = 7.
IF sy-subrc <> 0 AND sy-subrc <> 2.
- lcx_exception=>raise( 'error from SSF_DELETE_STYLE' ).
+ zcx_abapgit_exception=>raise( 'error from SSF_DELETE_STYLE' ).
ENDIF.
ENDMETHOD. "delete
@@ -255,7 +255,7 @@ CLASS lcl_object_ssst IMPLEMENTATION.
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SSST' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SSST' ).
ENDIF.
ENDMETHOD. "jump
diff --git a/src/zabapgit_object_styl.prog.abap b/src/zabapgit_object_styl.prog.abap
index b8f9c78ce..7dfeff25c 100644
--- a/src/zabapgit_object_styl.prog.abap
+++ b/src/zabapgit_object_styl.prog.abap
@@ -125,7 +125,7 @@ CLASS lcl_object_styl IMPLEMENTATION.
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, STYL' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, STYL' ).
ENDIF.
ENDMETHOD. "jump
diff --git a/src/zabapgit_object_suso.prog.abap b/src/zabapgit_object_suso.prog.abap
index eeaa5d49f..6d42702d7 100644
--- a/src/zabapgit_object_suso.prog.abap
+++ b/src/zabapgit_object_suso.prog.abap
@@ -66,7 +66,7 @@ CLASS lcl_object_suso IMPLEMENTATION.
WHERE object = ms_item-obj_name
AND langu = mv_language. "#EC CI_GENBUFF
IF sy-subrc <> 0.
- lcx_exception=>raise( 'TOBJT no english description' ).
+ zcx_abapgit_exception=>raise( 'TOBJT no english description' ).
ENDIF.
SELECT SINGLE * FROM tobjvorflg INTO ls_tobjvorflg
diff --git a/src/zabapgit_object_tabl.prog.abap b/src/zabapgit_object_tabl.prog.abap
index 4f0e423cd..db05a0a32 100644
--- a/src/zabapgit_object_tabl.prog.abap
+++ b/src/zabapgit_object_tabl.prog.abap
@@ -165,7 +165,7 @@ CLASS lcl_object_tabl IMPLEMENTATION.
object_not_specified = 3
permission_failure = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DD_DELETE_OBJ, TABL' ).
+ zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, TABL' ).
ENDIF.
ENDMETHOD. "delete
@@ -212,7 +212,7 @@ CLASS lcl_object_tabl IMPLEMENTATION.
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_TABL_GET' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_TABL_GET' ).
ENDIF.
IF ls_dd02v IS INITIAL.
RETURN. " object does not exits
@@ -406,7 +406,7 @@ CLASS lcl_object_tabl IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_TABL_PUT' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_TABL_PUT' ).
ENDIF.
lcl_objects_activation=>add_item( ms_item ).
@@ -437,7 +437,7 @@ CLASS lcl_object_tabl IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_INDX_PUT' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_INDX_PUT' ).
ENDIF.
CALL FUNCTION 'DD_DD_TO_E071'
diff --git a/src/zabapgit_object_tabl_valid.prog.abap b/src/zabapgit_object_tabl_valid.prog.abap
index 19d7887f3..c2f01197b 100644
--- a/src/zabapgit_object_tabl_valid.prog.abap
+++ b/src/zabapgit_object_tabl_valid.prog.abap
@@ -11,7 +11,7 @@ CLASS lcl_object_tabl_valid DEFINITION FINAL.
RETURNING
VALUE(rv_message) TYPE string
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
ENDCLASS.
CLASS lcl_tabl_valid_dialog DEFINITION FINAL.
@@ -81,7 +81,7 @@ CLASS lcl_tabl_valid_dialog IMPLEMENTATION.
icon_button_2 = 'ICON_OKAY'
default_button = '2'
display_cancel_button = abap_false ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
mv_halt = abap_true.
ENDTRY.
@@ -96,13 +96,13 @@ CLASS lct_table_validation DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION S
PRIVATE SECTION.
METHODS:
setup,
- type_changed FOR TESTING RAISING lcx_exception,
- no_type_changes FOR TESTING RAISING lcx_exception,
- field_not_found FOR TESTING RAISING lcx_exception,
- no_fields_no_message FOR TESTING RAISING lcx_exception,
+ type_changed FOR TESTING RAISING zcx_abapgit_exception,
+ no_type_changes FOR TESTING RAISING zcx_abapgit_exception,
+ field_not_found FOR TESTING RAISING zcx_abapgit_exception,
+ no_fields_no_message FOR TESTING RAISING zcx_abapgit_exception,
create_xmls
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
DATA: mo_table_validator TYPE REF TO lcl_object_tabl_valid,
mo_previous_version_out_xml TYPE REF TO lcl_xml_output,
diff --git a/src/zabapgit_object_tobj.prog.abap b/src/zabapgit_object_tobj.prog.abap
index abf4a341d..5899f5d97 100644
--- a/src/zabapgit_object_tobj.prog.abap
+++ b/src/zabapgit_object_tobj.prog.abap
@@ -136,7 +136,7 @@ CLASS lcl_object_tobj IMPLEMENTATION.
IF sy-subrc = 1.
RETURN.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from CTO_OBJECT_GET' ).
+ zcx_abapgit_exception=>raise( 'error from CTO_OBJECT_GET' ).
ENDIF.
CLEAR: ls_objh-luser,
@@ -203,7 +203,7 @@ CLASS lcl_object_tobj IMPLEMENTATION.
IF sy-subrc <> 0.
* TOBJ has to be saved/generated after the DDIC tables have been
* activated - fixed with late deserialization
- lcx_exception=>raise( 'error from OBJ_GENERATE' ).
+ zcx_abapgit_exception=>raise( 'error from OBJ_GENERATE' ).
ENDIF.
io_xml->read( EXPORTING iv_name = 'TOBJ'
@@ -236,7 +236,7 @@ CLASS lcl_object_tobj IMPLEMENTATION.
object_enqueue_failed = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from OBJ_GENERATE' ).
+ zcx_abapgit_exception=>raise( 'error from OBJ_GENERATE' ).
ENDIF.
delete_extra( ls_objh-objectname ).
@@ -280,7 +280,7 @@ CLASS lcl_object_tobj IMPLEMENTATION.
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, TOBJ' ).
+ zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, TOBJ' ).
ENDIF.
ENDMETHOD. "jump
diff --git a/src/zabapgit_object_tran.prog.abap b/src/zabapgit_object_tran.prog.abap
index 4af431ff9..749455808 100644
--- a/src/zabapgit_object_tran.prog.abap
+++ b/src/zabapgit_object_tran.prog.abap
@@ -41,11 +41,11 @@ CLASS lcl_object_tran DEFINITION INHERITING FROM lcl_objects_super FINAL.
serialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize_texts
IMPORTING io_xml TYPE REF TO lcl_xml_input
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_TRAN DEFINITION
@@ -271,7 +271,7 @@ CLASS lcl_object_tran IMPLEMENTATION.
object_not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RPY_TRANSACTION_DELETE' ).
+ zcx_abapgit_exception=>raise( 'Error from RPY_TRANSACTION_DELETE' ).
ENDIF.
ENDMETHOD. "delete
@@ -321,7 +321,7 @@ CLASS lcl_object_tran IMPLEMENTATION.
lv_type = ststc_c_type_parameters.
* todo, or ststc_c_type_variant?
WHEN OTHERS.
- lcx_exception=>raise( 'Transaction, unknown CINFO' ).
+ zcx_abapgit_exception=>raise( 'Transaction, unknown CINFO' ).
ENDCASE.
IF ls_tstcp IS NOT INITIAL.
@@ -362,7 +362,7 @@ CLASS lcl_object_tran IMPLEMENTATION.
db_access_error = 8
OTHERS = 9.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RPY_TRANSACTION_INSERT' ).
+ zcx_abapgit_exception=>raise( 'Error from RPY_TRANSACTION_INSERT' ).
ENDIF.
" Texts deserializing (translations)
@@ -398,7 +398,7 @@ CLASS lcl_object_tran IMPLEMENTATION.
IF sy-subrc = 4 OR sy-subrc = 3.
RETURN.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RPY_TRANSACTION_READ' ).
+ zcx_abapgit_exception=>raise( 'Error from RPY_TRANSACTION_READ' ).
ENDIF.
SELECT SINGLE * FROM tstct INTO ls_tstct
@@ -471,7 +471,7 @@ CLASS lcl_object_tran IMPLEMENTATION.
IF lines( lt_tpool_i18n ) > 0.
MODIFY tstct FROM TABLE lt_tpool_i18n.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Update of t-code translations failed' ).
+ zcx_abapgit_exception=>raise( 'Update of t-code translations failed' ).
ENDIF.
ENDIF.
diff --git a/src/zabapgit_object_ttyp.prog.abap b/src/zabapgit_object_ttyp.prog.abap
index a8031cc0e..c6a9d97ed 100644
--- a/src/zabapgit_object_ttyp.prog.abap
+++ b/src/zabapgit_object_ttyp.prog.abap
@@ -92,7 +92,7 @@ CLASS lcl_object_ttyp IMPLEMENTATION.
object_not_specified = 3
permission_failure = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DD_DELETE_OBJ, TTYP' ).
+ zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, TTYP' ).
ENDIF.
ENDMETHOD. "delete
@@ -121,7 +121,7 @@ CLASS lcl_object_ttyp IMPLEMENTATION.
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_TTYP_GET' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_TTYP_GET' ).
ENDIF.
IF ls_dd40v IS INITIAL.
RETURN. " does not exist in system
@@ -178,7 +178,7 @@ CLASS lcl_object_ttyp IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_TTYP_PUT' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_TTYP_PUT' ).
ENDIF.
lcl_objects_activation=>add_item( ms_item ).
diff --git a/src/zabapgit_object_type.prog.abap b/src/zabapgit_object_type.prog.abap
index 0612a2e13..75ae61796 100644
--- a/src/zabapgit_object_type.prog.abap
+++ b/src/zabapgit_object_type.prog.abap
@@ -19,14 +19,14 @@ CLASS lcl_object_type DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS read
EXPORTING ev_ddtext TYPE ddtypet-ddtext
et_source TYPE abaptxt255_tab
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
lcx_not_found.
METHODS create
IMPORTING iv_ddtext TYPE ddtypet-ddtext
it_source TYPE abaptxt255_tab
iv_devclass TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_type DEFINITION
@@ -54,7 +54,7 @@ CLASS lcl_object_type IMPLEMENTATION.
TRY.
read( ).
rv_bool = abap_true.
- CATCH lcx_not_found lcx_exception.
+ CATCH lcx_not_found zcx_abapgit_exception.
rv_bool = abap_false.
ENDTRY.
@@ -90,7 +90,7 @@ CLASS lcl_object_type IMPLEMENTATION.
reps_not_exist = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from TYPD_GET_OBJECT' ).
+ zcx_abapgit_exception=>raise( 'error from TYPD_GET_OBJECT' ).
ENDIF.
ENDMETHOD. "read
@@ -140,14 +140,14 @@ CLASS lcl_object_type IMPLEMENTATION.
illegal_name = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DD_TYGR_INSERT_SOURCES' ).
+ zcx_abapgit_exception=>raise( 'error from RS_DD_TYGR_INSERT_SOURCES' ).
ENDIF.
CONCATENATE c_prefix lv_typegroup INTO lv_progname.
UPDATE progdir SET uccheck = abap_true
WHERE name = lv_progname.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error setting uccheck' ).
+ zcx_abapgit_exception=>raise( 'error setting uccheck' ).
ENDIF.
ENDMETHOD. "create
@@ -201,7 +201,7 @@ CLASS lcl_object_type IMPLEMENTATION.
dialog_needed = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error deleting TYPE' ).
+ zcx_abapgit_exception=>raise( 'error deleting TYPE' ).
ENDIF.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_vcls.prog.abap b/src/zabapgit_object_vcls.prog.abap
index b6afa441b..1f7754bb3 100644
--- a/src/zabapgit_object_vcls.prog.abap
+++ b/src/zabapgit_object_vcls.prog.abap
@@ -83,7 +83,7 @@ CLASS lcl_object_vcls IMPLEMENTATION.
incomplete_viewcluster = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error in VIEWCLUSTER_GET_DEFINITION' ).
+ zcx_abapgit_exception=>raise( 'error in VIEWCLUSTER_GET_DEFINITION' ).
ENDIF.
CLEAR ls_vcldir_entry-author.
@@ -142,7 +142,7 @@ CLASS lcl_object_vcls IMPLEMENTATION.
object_enqueue_failed = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error in OBJ_GENERATE for VCLS' ).
+ zcx_abapgit_exception=>raise( 'error in OBJ_GENERATE for VCLS' ).
ENDIF.
ENDMETHOD. "deserialize
@@ -190,7 +190,7 @@ CLASS lcl_object_vcls IMPLEMENTATION.
missing_corr_number = 15
OTHERS = 16.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error in VIEWCLUSTER_MAINTENANCE_CALL' ).
+ zcx_abapgit_exception=>raise( 'error in VIEWCLUSTER_MAINTENANCE_CALL' ).
ENDIF.
ENDMETHOD. "jump
diff --git a/src/zabapgit_object_view.prog.abap b/src/zabapgit_object_view.prog.abap
index bee07aff5..20ab4cd2d 100644
--- a/src/zabapgit_object_view.prog.abap
+++ b/src/zabapgit_object_view.prog.abap
@@ -128,7 +128,7 @@ CLASS lcl_object_view IMPLEMENTATION.
object_not_specified = 3
permission_failure = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_DD_DELETE_OBJ, VIEW' ).
+ zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, VIEW' ).
ENDIF.
ENDMETHOD. "delete
@@ -165,7 +165,7 @@ CLASS lcl_object_view IMPLEMENTATION.
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_VIEW_GET' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_VIEW_GET' ).
ENDIF.
IF ls_dd25v IS INITIAL.
RETURN. " does not exist in system
@@ -264,7 +264,7 @@ CLASS lcl_object_view IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from DDIF_VIEW_PUT' ).
+ zcx_abapgit_exception=>raise( 'error from DDIF_VIEW_PUT' ).
ENDIF.
lcl_objects_activation=>add_item( ms_item ).
diff --git a/src/zabapgit_object_w3xx.prog.abap b/src/zabapgit_object_w3xx.prog.abap
index d70632f1d..9722a79eb 100644
--- a/src/zabapgit_object_w3xx.prog.abap
+++ b/src/zabapgit_object_w3xx.prog.abap
@@ -44,22 +44,22 @@ CLASS lcl_object_w3super DEFINITION INHERITING FROM lcl_objects_super ABSTRACT.
METHODS get_ext
IMPORTING it_params TYPE ty_wwwparams_tt
RETURNING VALUE(rv_ext) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS normalize_params
IMPORTING iv_size TYPE i
CHANGING ct_params TYPE ty_wwwparams_tt " Param table to patch
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS strip_params
CHANGING ct_params TYPE ty_wwwparams_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS find_param
IMPORTING it_params TYPE ty_wwwparams_tt
iv_name TYPE w3_name
RETURNING VALUE(rv_value) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_W3SUPER DEFINITION
@@ -198,7 +198,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
import_error = 2.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot read W3xx data' ).
+ zcx_abapgit_exception=>raise( 'Cannot read W3xx data' ).
ENDIF.
CALL FUNCTION 'WWWPARAMS_READ_ALL'
@@ -211,7 +211,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
entry_not_exists = 1.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot read W3xx data' ).
+ zcx_abapgit_exception=>raise( 'Cannot read W3xx data' ).
ENDIF.
lv_size = find_param( it_params = lt_w3params iv_name = c_param_names-filesize ).
@@ -238,11 +238,11 @@ CLASS lcl_object_w3super IMPLEMENTATION.
EXCEPTIONS
failed = 1.
WHEN OTHERS.
- lcx_exception=>raise( 'Wrong W3xx type' ).
+ zcx_abapgit_exception=>raise( 'Wrong W3xx type' ).
ENDCASE.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot convert W3xx to xstring' ).
+ zcx_abapgit_exception=>raise( 'Cannot convert W3xx to xstring' ).
ENDIF.
io_xml->add( iv_name = 'NAME'
@@ -287,7 +287,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
lv_xstring = lif_object~mo_files->read_raw( iv_extra = 'data'
iv_ext = get_ext( lt_w3params ) ).
WHEN OTHERS.
- lcx_exception=>raise( 'W3xx: Unknown serializer version' ).
+ zcx_abapgit_exception=>raise( 'W3xx: Unknown serializer version' ).
ENDCASE.
CASE ms_key-relid.
@@ -319,12 +319,12 @@ CLASS lcl_object_w3super IMPLEMENTATION.
EXCEPTIONS
failed = 1.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot update W3xx params' ).
+ zcx_abapgit_exception=>raise( 'Cannot update W3xx params' ).
ENDIF.
CLEAR lt_w3mime.
WHEN OTHERS.
- lcx_exception=>raise( 'Wrong W3xx type' ).
+ zcx_abapgit_exception=>raise( 'Wrong W3xx type' ).
ENDCASE.
" Update size of file based on actual data file size, prove param object name
@@ -338,7 +338,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
update_error = 1.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot update W3xx params' ).
+ zcx_abapgit_exception=>raise( 'Cannot update W3xx params' ).
ENDIF.
ms_key-tdate = sy-datum.
@@ -357,7 +357,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
export_error = 2.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot upload W3xx data' ).
+ zcx_abapgit_exception=>raise( 'Cannot upload W3xx data' ).
ENDIF.
CONCATENATE 'W3' ms_key-relid INTO lv_tadir_obj.
@@ -397,7 +397,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
OTHERS = 99.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot update TADIR for W3xx' ).
+ zcx_abapgit_exception=>raise( 'Cannot update TADIR for W3xx' ).
ENDIF.
ENDMETHOD. "lif_object~deserialize
@@ -412,7 +412,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
delete_error = 2.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot delete W3xx data' ).
+ zcx_abapgit_exception=>raise( 'Cannot delete W3xx data' ).
ENDIF.
CALL FUNCTION 'WWWPARAMS_DELETE_ALL'
@@ -422,7 +422,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
delete_error = 1.
IF sy-subrc IS NOT INITIAL.
- lcx_exception=>raise( 'Cannot delete W3xx params' ).
+ zcx_abapgit_exception=>raise( 'Cannot delete W3xx params' ).
ENDIF.
ENDMETHOD. "lif_object~delete
@@ -477,7 +477,7 @@ CLASS lcl_object_w3super IMPLEMENTATION.
READ TABLE it_params ASSIGNING WITH KEY name = iv_name.
IF sy-subrc > 0.
- lcx_exception=>raise( |W3xx: Cannot find { iv_name } for { ms_key-objid }| ).
+ zcx_abapgit_exception=>raise( |W3xx: Cannot find { iv_name } for { ms_key-objid }| ).
ENDIF.
rv_value = -value.
diff --git a/src/zabapgit_object_wapa.prog.abap b/src/zabapgit_object_wapa.prog.abap
index 303ff239d..d17a61d60 100644
--- a/src/zabapgit_object_wapa.prog.abap
+++ b/src/zabapgit_object_wapa.prog.abap
@@ -35,7 +35,7 @@ CLASS lcl_object_wapa DEFINITION INHERITING FROM lcl_objects_super FINAL.
read_page
IMPORTING is_page TYPE o2pagattr
RETURNING VALUE(rs_page) TYPE ty_page
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_TRAN DEFINITION
@@ -211,7 +211,7 @@ CLASS lcl_object_wapa IMPLEMENTATION.
error_occured = 7
invalid_parameter = 8 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( |WAPA - error from create_new: { sy-subrc }| ).
+ zcx_abapgit_exception=>raise( |WAPA - error from create_new: { sy-subrc }| ).
ENDIF.
lo_bsp->save( ).
diff --git a/src/zabapgit_object_wdya.prog.abap b/src/zabapgit_object_wdya.prog.abap
index 867396b44..bbc0569d8 100644
--- a/src/zabapgit_object_wdya.prog.abap
+++ b/src/zabapgit_object_wdya.prog.abap
@@ -17,13 +17,13 @@ CLASS lcl_object_wdya DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS read
EXPORTING es_app TYPE wdy_application
et_properties TYPE wdy_app_property_table
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS save
IMPORTING is_app TYPE wdy_application
it_properties TYPE wdy_app_property_table
iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_wdya DEFINITION
@@ -83,7 +83,7 @@ CLASS lcl_object_wdya IMPLEMENTATION.
CATCH cx_wdy_md_not_existing.
rv_bool = abap_false.
CATCH cx_wdy_md_permission_failure.
- lcx_exception=>raise( 'WDYA, permission failure' ).
+ zcx_abapgit_exception=>raise( 'WDYA, permission failure' ).
ENDTRY.
ENDMETHOD. "lif_object~exists
@@ -108,7 +108,7 @@ CLASS lcl_object_wdya IMPLEMENTATION.
CATCH cx_wdy_md_not_existing.
RETURN.
CATCH cx_wdy_md_permission_failure.
- lcx_exception=>raise( 'WDYA, permission failure' ).
+ zcx_abapgit_exception=>raise( 'WDYA, permission failure' ).
ENDTRY.
li_app->if_wdy_md_object~get_definition( IMPORTING definition = es_app ).
@@ -166,7 +166,7 @@ CLASS lcl_object_wdya IMPLEMENTATION.
lo_app->if_wdy_md_lockable_object~save_to_database( ).
CATCH cx_wdy_md_exception.
- lcx_exception=>raise( 'error saving WDYA' ).
+ zcx_abapgit_exception=>raise( 'error saving WDYA' ).
ENDTRY.
ENDMETHOD. "save
@@ -219,7 +219,7 @@ CLASS lcl_object_wdya IMPLEMENTATION.
CATCH cx_wdy_md_not_existing.
RETURN.
CATCH cx_wdy_md_exception.
- lcx_exception=>raise( 'WDYA, error deleting' ).
+ zcx_abapgit_exception=>raise( 'WDYA, error deleting' ).
ENDTRY.
ENDMETHOD. "delete
diff --git a/src/zabapgit_object_wdyn.prog.abap b/src/zabapgit_object_wdyn.prog.abap
index ad1cfcf86..f98a10251 100644
--- a/src/zabapgit_object_wdyn.prog.abap
+++ b/src/zabapgit_object_wdyn.prog.abap
@@ -24,42 +24,42 @@ CLASS lcl_object_wdyn DEFINITION INHERITING FROM lcl_objects_super FINAL.
RETURNING VALUE(rt_objects) TYPE wdy_md_transport_keys,
read
RETURNING VALUE(rs_component) TYPE wdy_component_metadata
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read_controller
IMPORTING is_key TYPE wdy_md_controller_key
RETURNING VALUE(rs_controller) TYPE wdy_md_controller_meta_data
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read_definition
IMPORTING is_key TYPE wdy_md_component_key
RETURNING VALUE(rs_definition) TYPE wdy_md_component_meta_data
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read_view
IMPORTING is_key TYPE wdy_md_view_key
RETURNING VALUE(rs_view) TYPE wdy_md_view_meta_data
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
recover_controller
IMPORTING is_controller TYPE wdy_md_controller_meta_data
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
recover_definition
IMPORTING is_definition TYPE wdy_md_component_meta_data
iv_package TYPE devclass
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
recover_view
IMPORTING is_view TYPE wdy_md_view_meta_data
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
delta_controller
IMPORTING is_controller TYPE wdy_md_controller_meta_data
RETURNING VALUE(rs_delta) TYPE svrs2_xversionable_object
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
delta_definition
IMPORTING is_definition TYPE wdy_md_component_meta_data
VALUE(iv_package) TYPE devclass
RETURNING VALUE(rs_delta) TYPE svrs2_xversionable_object
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
delta_view
IMPORTING is_view TYPE wdy_md_view_meta_data
RETURNING VALUE(rs_delta) TYPE svrs2_xversionable_object
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
add_fm_param_exporting
IMPORTING i_name TYPE string
i_value TYPE any
@@ -131,7 +131,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
li_component->save_to_database( ).
li_component->unlock( ).
CATCH cx_wdy_md_exception.
- lcx_exception=>raise( 'error creating dummy component' ).
+ zcx_abapgit_exception=>raise( 'error creating dummy component' ).
ENDTRY.
ENDIF.
@@ -158,7 +158,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
EXCEPTIONS
inconsistent_objects = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SVRS_MAKE_OBJECT_DELTA' ).
+ zcx_abapgit_exception=>raise( 'error from SVRS_MAKE_OBJECT_DELTA' ).
ENDIF.
ENDMETHOD. "delta_definition
@@ -194,7 +194,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
li_controller->save_to_database( ).
li_controller->unlock( ).
CATCH cx_wdy_md_exception.
- lcx_exception=>raise( 'error creating dummy controller' ).
+ zcx_abapgit_exception=>raise( 'error creating dummy controller' ).
ENDTRY.
ENDIF.
@@ -254,7 +254,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
EXCEPTIONS
inconsistent_objects = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SVRS_MAKE_OBJECT_DELTA' ).
+ zcx_abapgit_exception=>raise( 'error from SVRS_MAKE_OBJECT_DELTA' ).
ENDIF.
ENDMETHOD. "delta_controller
@@ -285,7 +285,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
li_view->save_to_database( ).
li_view->unlock( ).
CATCH cx_wdy_md_exception.
- lcx_exception=>raise( 'error creating dummy view' ).
+ zcx_abapgit_exception=>raise( 'error creating dummy view' ).
ENDTRY.
ENDIF.
@@ -325,7 +325,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
EXCEPTIONS
inconsistent_objects = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from SVRS_MAKE_OBJECT_DELTA' ).
+ zcx_abapgit_exception=>raise( 'error from SVRS_MAKE_OBJECT_DELTA' ).
ENDIF.
ENDMETHOD. "delta_view
@@ -485,7 +485,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
EXCEPTION-TABLE
lt_fm_exception.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from WDYC_GET_OBJECT' ).
+ zcx_abapgit_exception=>raise( 'error from WDYC_GET_OBJECT' ).
ENDIF.
APPEND LINES OF lt_components TO mt_components.
@@ -493,7 +493,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
READ TABLE lt_definition INDEX 1 INTO rs_controller-definition.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'WDYC, definition not found' ).
+ zcx_abapgit_exception=>raise( 'WDYC, definition not found' ).
ENDIF.
CLEAR: rs_controller-definition-author,
@@ -530,12 +530,12 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
IF sy-subrc = 1.
RETURN.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from WDYD_GET_OBJECT' ).
+ zcx_abapgit_exception=>raise( 'error from WDYD_GET_OBJECT' ).
ENDIF.
READ TABLE lt_definition INDEX 1 INTO rs_definition-definition.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'WDYD, definition not found' ).
+ zcx_abapgit_exception=>raise( 'WDYD, definition not found' ).
ENDIF.
CLEAR: rs_definition-definition-author,
@@ -585,7 +585,7 @@ CLASS lcl_object_wdyn IMPLEMENTATION.
not_existing = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from WDYV_GET_OBJECT' ).
+ zcx_abapgit_exception=>raise( 'error from WDYV_GET_OBJECT' ).
ENDIF.
READ TABLE lt_definition INDEX 1 ASSIGNING .
diff --git a/src/zabapgit_object_webi.prog.abap b/src/zabapgit_object_webi.prog.abap
index 65189e3c9..4c5d35dc2 100644
--- a/src/zabapgit_object_webi.prog.abap
+++ b/src/zabapgit_object_webi.prog.abap
@@ -38,19 +38,19 @@ CLASS lcl_object_webi DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
handle_endpoint
IMPORTING is_webi TYPE ty_webi
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
cx_ws_md_exception,
handle_types
IMPORTING is_webi TYPE ty_webi
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
cx_ws_md_exception,
handle_soap
IMPORTING is_webi TYPE ty_webi
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
cx_ws_md_exception,
handle_function
IMPORTING is_webi TYPE ty_webi
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
cx_ws_md_exception.
ENDCLASS. "lcl_object_SFBS DEFINITION
@@ -106,7 +106,7 @@ CLASS lcl_object_webi IMPLEMENTATION.
webi_not_exist = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from WEBI_GET_OBJECT' ).
+ zcx_abapgit_exception=>raise( 'error from WEBI_GET_OBJECT' ).
ENDIF.
SORT ls_webi-pveptype BY
@@ -119,7 +119,7 @@ CLASS lcl_object_webi IMPLEMENTATION.
li_vi = cl_ws_md_factory=>get_vif_root( )->get_virtual_interface( lv_name ).
ls_webi-veptext = li_vi->get_short_text( sews_c_vif_version-active ).
CATCH cx_ws_md_exception.
- lcx_exception=>raise( 'error serializing WEBI' ).
+ zcx_abapgit_exception=>raise( 'error serializing WEBI' ).
ENDTRY.
LOOP AT ls_webi-pvepheader ASSIGNING .
@@ -162,11 +162,11 @@ CLASS lcl_object_webi IMPLEMENTATION.
IF ls_endpoint-endpointtype = 'BAPI'.
* it looks like some special handling is needed when calling
* set_data, and looking at the cluster data LS_ENDPOINT-CLUSTD
- lcx_exception=>raise( 'todo, WEBI BAPI' ).
+ zcx_abapgit_exception=>raise( 'todo, WEBI BAPI' ).
ENDIF.
IF lines( is_webi-pvepfunction ) <> 1.
- lcx_exception=>raise( 'todo, WEBI, function name' ).
+ zcx_abapgit_exception=>raise( 'todo, WEBI, function name' ).
ENDIF.
* field ls_endpoint-endpointname does not exist in 702
@@ -391,7 +391,7 @@ CLASS lcl_object_webi IMPLEMENTATION.
CATCH cx_ws_md_exception ##no_handler.
ENDTRY.
lv_text = lx_root->if_message~get_text( ).
- lcx_exception=>raise( 'error deserializing WEBI' ).
+ zcx_abapgit_exception=>raise( 'error deserializing WEBI' ).
ENDTRY.
lcl_objects_activation=>add_item( ms_item ).
@@ -410,7 +410,7 @@ CLASS lcl_object_webi IMPLEMENTATION.
TRY.
lo_vif->if_ws_md_vif_root~delete_virtual_interface( lv_name ).
CATCH cx_ws_md_exception.
- lcx_exception=>raise( 'error deleting WEBI' ).
+ zcx_abapgit_exception=>raise( 'error deleting WEBI' ).
ENDTRY.
ENDMETHOD. "lif_object~delete
diff --git a/src/zabapgit_object_xslt.prog.abap b/src/zabapgit_object_xslt.prog.abap
index 21cddb4f2..cf2feb848 100644
--- a/src/zabapgit_object_xslt.prog.abap
+++ b/src/zabapgit_object_xslt.prog.abap
@@ -17,7 +17,7 @@ CLASS lcl_object_xslt DEFINITION INHERITING FROM lcl_objects_super FINAL.
METHODS:
get
RETURNING VALUE(ro_xslt) TYPE REF TO cl_o2_api_xsltdesc
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_object_xslt DEFINITION
@@ -53,7 +53,7 @@ CLASS lcl_object_xslt IMPLEMENTATION.
permission_failure = 2
OTHERS = 3 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from cl_o2_api_xsltdesc=>load' ).
+ zcx_abapgit_exception=>raise( 'error from cl_o2_api_xsltdesc=>load' ).
ENDIF.
ENDMETHOD.
@@ -126,7 +126,7 @@ CLASS lcl_object_xslt IMPLEMENTATION.
undefined_name = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from cl_o2_api_xsltdesc=>create_new_from_string' ).
+ zcx_abapgit_exception=>raise( 'error from cl_o2_api_xsltdesc=>create_new_from_string' ).
ENDIF.
lo_xslt->activate( ).
@@ -159,7 +159,7 @@ CLASS lcl_object_xslt IMPLEMENTATION.
version_not_found = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from cl_o2_api_xsltdesc=>load' ).
+ zcx_abapgit_exception=>raise( 'error from cl_o2_api_xsltdesc=>load' ).
ENDIF.
lo_xslt->set_changeable( abap_true ).
diff --git a/src/zabapgit_objects.prog.abap b/src/zabapgit_objects.prog.abap
index 2fa71ef91..884c7a909 100644
--- a/src/zabapgit_objects.prog.abap
+++ b/src/zabapgit_objects.prog.abap
@@ -13,15 +13,15 @@ CLASS lcl_objects_activation DEFINITION FINAL.
CLASS-METHODS add
IMPORTING iv_type TYPE trobjtype
iv_name TYPE clike
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS add_item
IMPORTING is_item TYPE lif_defs=>ty_item
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS activate
IMPORTING iv_ddic TYPE abap_bool DEFAULT abap_false
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS clear.
@@ -65,7 +65,7 @@ CLASS lcl_objects_activation IMPLEMENTATION.
insert_into_corr_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_WORKING_OBJECTS_ACTIVATE' ).
+ zcx_abapgit_exception=>raise( 'error from RS_WORKING_OBJECTS_ACTIVATE' ).
ENDIF.
ENDIF.
@@ -132,7 +132,7 @@ CLASS lcl_objects_activation IMPLEMENTATION.
object_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from RS_INACTIVE_OBJECTS_IN_OBJECT' ).
+ zcx_abapgit_exception=>raise( 'Error from RS_INACTIVE_OBJECTS_IN_OBJECT' ).
ENDIF.
IF iv_type = 'CLAS'.
@@ -166,49 +166,49 @@ CLASS lcl_objects_files DEFINITION.
IMPORTING iv_extra TYPE clike OPTIONAL
iv_ext TYPE string
iv_string TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read_string
IMPORTING iv_extra TYPE clike OPTIONAL
iv_ext TYPE string
RETURNING VALUE(rv_string) TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
add_xml
IMPORTING iv_extra TYPE clike OPTIONAL
io_xml TYPE REF TO lcl_xml_output
iv_normalize TYPE sap_bool DEFAULT abap_true
is_metadata TYPE lif_defs=>ty_metadata OPTIONAL
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
* needed since type-check during dynamic call fails even if the object is compatible
add_xml_from_plugin
IMPORTING iv_extra TYPE clike OPTIONAL
io_xml TYPE REF TO object
iv_normalize TYPE sap_bool DEFAULT abap_true
- RAISING lcx_exception ##called,
+ RAISING zcx_abapgit_exception ##called,
read_xml
IMPORTING iv_extra TYPE clike OPTIONAL
RETURNING VALUE(ro_xml) TYPE REF TO lcl_xml_input
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read_abap
IMPORTING iv_extra TYPE clike OPTIONAL
iv_error TYPE sap_bool DEFAULT abap_true
RETURNING VALUE(rt_abap) TYPE abaptxt255_tab
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
add_abap
IMPORTING iv_extra TYPE clike OPTIONAL
it_abap TYPE STANDARD TABLE
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
add
IMPORTING is_file TYPE lif_defs=>ty_file,
add_raw
IMPORTING iv_extra TYPE clike OPTIONAL
iv_ext TYPE string
iv_data TYPE xstring
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read_raw
IMPORTING iv_extra TYPE clike OPTIONAL
iv_ext TYPE string
RETURNING VALUE(rv_data) TYPE xstring
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_files
RETURNING VALUE(rt_files) TYPE lif_defs=>ty_files_tt,
set_files
@@ -226,7 +226,7 @@ CLASS lcl_objects_files DEFINITION.
IMPORTING iv_filename TYPE string
iv_error TYPE abap_bool DEFAULT abap_true
EXPORTING ev_data TYPE xstring
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
filename
IMPORTING iv_extra TYPE clike OPTIONAL
iv_ext TYPE string
@@ -269,32 +269,32 @@ INTERFACE lif_object.
METHODS:
serialize
IMPORTING io_xml TYPE REF TO lcl_xml_output
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize
IMPORTING iv_package TYPE devclass
io_xml TYPE REF TO lcl_xml_input
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
delete
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
exists
RETURNING VALUE(rv_bool) TYPE abap_bool
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
changed_by
RETURNING VALUE(rv_user) TYPE xubname
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
jump
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_metadata
RETURNING VALUE(rs_metadata) TYPE lif_defs=>ty_metadata,
has_changed_since
IMPORTING iv_timestamp TYPE timestamp
RETURNING VALUE(rv_changed) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS:
compare_to_remote_version
IMPORTING io_remote_version_xml TYPE REF TO lcl_xml_input
RETURNING VALUE(ro_comparison_result) TYPE REF TO lif_comparison_result
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
DATA: mo_files TYPE REF TO lcl_objects_files.
@@ -491,7 +491,7 @@ CLASS lcl_objects_files IMPLEMENTATION.
IF sy-subrc <> 0.
IF iv_error = abap_true.
- lcx_exception=>raise( |File not found: { iv_filename }| ).
+ zcx_abapgit_exception=>raise( |File not found: { iv_filename }| ).
ELSE.
RETURN.
ENDIF.
@@ -555,7 +555,7 @@ CLASS lcl_objects_super DEFINITION ABSTRACT.
jump_adt
IMPORTING i_obj_name TYPE lif_defs=>ty_item-obj_name
i_obj_type TYPE lif_defs=>ty_item-obj_type
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CONSTANTS: c_user_unknown TYPE xubname VALUE 'UNKNOWN'.
@@ -576,14 +576,14 @@ CLASS lcl_objects_super DEFINITION ABSTRACT.
RETURNING VALUE(rs_metadata) TYPE lif_defs=>ty_metadata,
corr_insert
IMPORTING iv_package TYPE devclass
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
tadir_insert
IMPORTING iv_package TYPE devclass
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
jump_se11
IMPORTING iv_radio TYPE string
iv_field TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
@@ -592,7 +592,7 @@ CLASS lcl_objects_super DEFINITION ABSTRACT.
IMPORTING io_object TYPE REF TO cl_wb_object
io_adt TYPE REF TO object
RETURNING VALUE(r_is_adt_jump_possible) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_objects_super DEFINITION
@@ -690,10 +690,7 @@ CLASS lcl_objects_bridge IMPLEMENTATION.
iv_package = iv_package
io_xml = io_xml.
CATCH cx_static_check INTO lx_plugin.
- RAISE EXCEPTION TYPE lcx_exception
- EXPORTING
- ix_previous = lx_plugin
- iv_text = lx_plugin->get_text( ).
+ zcx_abapgit_exception=>raise( lx_plugin->get_text( ) ).
ENDTRY.
ENDMETHOD. "lif_object~deserialize
@@ -703,10 +700,7 @@ CLASS lcl_objects_bridge IMPLEMENTATION.
TRY.
CALL METHOD mo_plugin->('ZIF_ABAPGIT_PLUGIN~DELETE').
CATCH cx_static_check INTO lx_plugin.
- RAISE EXCEPTION TYPE lcx_exception
- EXPORTING
- ix_previous = lx_plugin
- iv_text = lx_plugin->get_text( ).
+ zcx_abapgit_exception=>raise( lx_plugin->get_text( ) ).
ENDTRY.
ENDMETHOD. "lif_object~delete
@@ -835,7 +829,7 @@ CLASS lcl_objects_program DEFINITION INHERITING FROM lcl_objects_super.
io_files TYPE REF TO lcl_objects_files
iv_program TYPE programm OPTIONAL
iv_extra TYPE clike OPTIONAL
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS read_progdir
IMPORTING iv_program TYPE programm
@@ -846,7 +840,7 @@ CLASS lcl_objects_program DEFINITION INHERITING FROM lcl_objects_super.
it_source TYPE abaptxt255_tab
it_tpool TYPE textpool_table
iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PROTECTED SECTION.
@@ -880,27 +874,27 @@ CLASS lcl_objects_program DEFINITION INHERITING FROM lcl_objects_super.
METHODS serialize_dynpros
IMPORTING iv_program_name TYPE programm
RETURNING VALUE(rt_dynpro) TYPE ty_dynpro_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS serialize_cua
IMPORTING iv_program_name TYPE programm
RETURNING VALUE(rs_cua) TYPE ty_cua
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS deserialize_dynpros
IMPORTING it_dynpros TYPE ty_dynpro_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS deserialize_textpool
IMPORTING iv_program TYPE programm
it_tpool TYPE textpool_table
iv_language TYPE langu OPTIONAL
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS deserialize_cua
IMPORTING iv_program_name TYPE programm
is_cua TYPE ty_cua
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS check_prog_changed_since
IMPORTING iv_program TYPE programm
@@ -1010,7 +1004,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
IF sy-subrc = 2.
RETURN.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'Error reading program' ).
+ zcx_abapgit_exception=>raise( 'Error reading program' ).
ENDIF.
ls_progdir = read_progdir( lv_program_name ).
@@ -1077,9 +1071,9 @@ CLASS lcl_objects_program IMPLEMENTATION.
unknown_objectclass = 3
OTHERS = 4.
IF sy-subrc = 1.
- lcx_exception=>raise( 'Cancelled' ).
+ zcx_abapgit_exception=>raise( 'Cancelled' ).
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_CORR_INSERT' ).
+ zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT' ).
ENDIF.
READ TABLE it_tpool INTO ls_tpool WITH KEY id = 'R'. "#EC CI_SUBRC
@@ -1118,9 +1112,9 @@ CLASS lcl_objects_program IMPLEMENTATION.
OTHERS = 4.
IF sy-subrc <> 0.
IF sy-msgid = 'EU' AND sy-msgno = '510'.
- lcx_exception=>raise( 'User is currently editing program' ).
+ zcx_abapgit_exception=>raise( 'User is currently editing program' ).
ELSE.
- lcx_exception=>raise( 'PROG, error updating' ).
+ zcx_abapgit_exception=>raise( 'PROG, error updating' ).
ENDIF.
ENDIF.
ELSE.
@@ -1138,7 +1132,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
STATE 'I'
EXTENSION TYPE is_progdir-name+30.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from INSERT REPORT .. EXTENSION TYPE' ).
+ zcx_abapgit_exception=>raise( 'error from INSERT REPORT .. EXTENSION TYPE' ).
ENDIF.
ELSE.
INSERT REPORT is_progdir-name
@@ -1146,7 +1140,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
STATE 'I'
PROGRAM TYPE is_progdir-subc.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from INSERT REPORT' ).
+ zcx_abapgit_exception=>raise( 'error from INSERT REPORT' ).
ENDIF.
ENDIF.
@@ -1156,7 +1150,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
LANGUAGE mv_language
STATE 'I'.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from INSERT TEXTPOOL' ).
+ zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ).
ENDIF.
ENDIF.
@@ -1172,7 +1166,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
not_exists = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'not found in PROGDIR' ).
+ zcx_abapgit_exception=>raise( 'not found in PROGDIR' ).
ENDIF.
* todo, package?
@@ -1195,7 +1189,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
not_executed = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'PROG, error inserting' ).
+ zcx_abapgit_exception=>raise( 'PROG, error inserting' ).
ENDIF.
SELECT SINGLE * FROM progdir INTO ls_progdir_new
@@ -1267,7 +1261,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
unknown_version = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_CUA_INTERNAL_FETCH' ).
+ zcx_abapgit_exception=>raise( 'error from RS_CUA_INTERNAL_FETCH' ).
ENDIF.
ENDMETHOD. "serialize_cua
@@ -1296,7 +1290,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
not_found = 1
OTHERS = 2.
IF sy-subrc = 2.
- lcx_exception=>raise( 'error from screen_list' ).
+ zcx_abapgit_exception=>raise( 'error from screen_list' ).
ENDIF.
* loop dynpros and skip generated selection screens
@@ -1318,7 +1312,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
permission_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error while reading dynpro' ).
+ zcx_abapgit_exception=>raise( 'Error while reading dynpro' ).
ENDIF.
LOOP AT lt_fields_to_containers ASSIGNING .
@@ -1378,7 +1372,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
illegal_field_position = 9
OTHERS = 10.
IF sy-subrc <> 2 AND sy-subrc <> 0.
- lcx_exception=>raise( 'error from RPY_DYNPRO_INSERT' ).
+ zcx_abapgit_exception=>raise( 'error from RPY_DYNPRO_INSERT' ).
ENDIF.
* todo, RPY_DYNPRO_UPDATE?
@@ -1448,7 +1442,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
LANGUAGE lv_language
STATE 'I'.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from INSERT TEXTPOOL' ).
+ zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ).
ENDIF.
IF lv_language = mv_language. " Add just once
@@ -1483,7 +1477,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
AND object = ms_item-obj_type
AND obj_name = ms_item-obj_name. "#EC CI_GENBUFF
IF sy-subrc <> 0.
- lcx_exception=>raise( 'not found in tadir' ).
+ zcx_abapgit_exception=>raise( 'not found in tadir' ).
ENDIF.
ls_tr_key-obj_type = ms_item-obj_type.
@@ -1516,7 +1510,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
OTHERS = 2.
IF sy-subrc <> 0.
* if moving code from SAPlink, see https://github.com/larshp/abapGit/issues/562
- lcx_exception=>raise( 'error from RS_CUA_INTERNAL_WRITE' ).
+ zcx_abapgit_exception=>raise( 'error from RS_CUA_INTERNAL_WRITE' ).
ENDIF.
lcl_objects_activation=>add( iv_type = 'CUAD'
@@ -1674,7 +1668,7 @@ CLASS lcl_objects_super IMPLEMENTATION.
RECEIVING p_wb_object = li_object
EXCEPTIONS OTHERS = 1 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'ADT Jump Error' ).
+ zcx_abapgit_exception=>raise( 'ADT Jump Error' ).
ENDIF.
CALL METHOD ('CL_ADT_TOOLS_CORE_FACTORY')=>('GET_INSTANCE')
@@ -1683,7 +1677,7 @@ CLASS lcl_objects_super IMPLEMENTATION.
IF is_adt_jump_possible( io_object = li_object
io_adt = li_adt ) = abap_false.
- lcx_exception=>raise( 'ADT Jump Error' ).
+ zcx_abapgit_exception=>raise( 'ADT Jump Error' ).
ENDIF.
CALL METHOD li_adt->('IF_ADT_TOOLS_CORE_FACTORY~GET_URI_MAPPER')
@@ -1705,11 +1699,11 @@ CLASS lcl_objects_super IMPLEMENTATION.
EXCEPTIONS OTHERS = 1 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'ADT Jump Error' ).
+ zcx_abapgit_exception=>raise( 'ADT Jump Error' ).
ENDIF.
CATCH cx_root.
- lcx_exception=>raise( 'ADT Jump Error' ).
+ zcx_abapgit_exception=>raise( 'ADT Jump Error' ).
ENDTRY.
ENDMETHOD.
@@ -1755,7 +1749,7 @@ CLASS lcl_objects_super IMPLEMENTATION.
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from TR_TADIR_INTERFACE' ).
+ zcx_abapgit_exception=>raise( 'error from TR_TADIR_INTERFACE' ).
ENDIF.
ENDMETHOD.
@@ -1781,9 +1775,9 @@ CLASS lcl_objects_super IMPLEMENTATION.
unknown_objectclass = 3
OTHERS = 4.
IF sy-subrc = 1.
- lcx_exception=>raise( 'Cancelled' ).
+ zcx_abapgit_exception=>raise( 'Cancelled' ).
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'error from RS_CORR_INSERT' ).
+ zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT' ).
ENDIF.
ENDMETHOD. "corr_insert
@@ -1806,7 +1800,7 @@ CLASS lcl_objects_super IMPLEMENTATION.
OTHERS = 3 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'ADT Jump Error' ).
+ zcx_abapgit_exception=>raise( 'ADT Jump Error' ).
ENDIF.
TRY.
@@ -1827,7 +1821,7 @@ CLASS lcl_objects_super IMPLEMENTATION.
ENDIF.
CATCH cx_root.
- lcx_exception=>raise( 'ADT Jump Error' ).
+ zcx_abapgit_exception=>raise( 'ADT Jump Error' ).
ENDTRY.
ENDMETHOD.
@@ -1866,21 +1860,21 @@ CLASS lcl_objects_saxx_super DEFINITION ABSTRACT
METHODS:
create_channel_objects
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
get_data
EXPORTING
p_data TYPE any
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
lock
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
unlock
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
get_names.
@@ -1907,7 +1901,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
ASSIGN lr_data->* TO .
CATCH cx_root.
- lcx_exception=>raise( |{ ms_item-obj_name } not supported| ).
+ zcx_abapgit_exception=>raise( |{ ms_item-obj_name } not supported| ).
ENDTRY.
get_data(
@@ -1965,7 +1959,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
ASSIGN lr_data->* TO .
CATCH cx_root.
- lcx_exception=>raise( |{ ms_item-obj_type } not supported| ).
+ zcx_abapgit_exception=>raise( |{ ms_item-obj_type } not supported| ).
ENDTRY.
get_data(
@@ -2025,7 +2019,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
ASSIGN lr_data->* TO .
CATCH cx_root.
- lcx_exception=>raise( |{ ms_item-obj_type } not supported| ).
+ zcx_abapgit_exception=>raise( |{ ms_item-obj_type } not supported| ).
ENDTRY.
io_xml->read(
@@ -2056,7 +2050,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Error occured while creating { ms_item-obj_type }| ).
+ zcx_abapgit_exception=>raise( |Error occured while creating { ms_item-obj_type }| ).
ENDIF.
mo_appl_obj_data->set_data( ).
@@ -2066,7 +2060,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
unlock( ).
CATCH cx_swb_exception.
- lcx_exception=>raise( |Error occured while creating { ms_item-obj_type }| ).
+ zcx_abapgit_exception=>raise( |Error occured while creating { ms_item-obj_type }| ).
ENDTRY.
ENDMETHOD.
@@ -2087,7 +2081,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
unlock( ).
CATCH cx_swb_exception.
- lcx_exception=>raise( |Error occured while deleting { ms_item-obj_type }| ).
+ zcx_abapgit_exception=>raise( |Error occured while deleting { ms_item-obj_type }| ).
ENDTRY.
ENDMETHOD.
@@ -2120,7 +2114,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
ENDIF.
CATCH cx_root.
- lcx_exception=>raise( |{ ms_item-obj_type } not supported| ).
+ zcx_abapgit_exception=>raise( |{ ms_item-obj_type } not supported| ).
ENDTRY.
ENDMETHOD.
@@ -2140,7 +2134,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
p_object_data = mo_appl_obj_data ).
CATCH cx_root.
- lcx_exception=>raise( |{ ms_item-obj_type } not supported| ).
+ zcx_abapgit_exception=>raise( |{ ms_item-obj_type } not supported| ).
ENDTRY.
mo_appl_obj_data->get_data(
@@ -2170,7 +2164,7 @@ CLASS lcl_objects_saxx_super IMPLEMENTATION.
OTHERS = 3 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( |Error occured while locking { ms_item-obj_type } | && objname ).
+ zcx_abapgit_exception=>raise( |Error occured while locking { ms_item-obj_type } | && objname ).
ENDIF.
ENDMETHOD. "lock
@@ -2233,31 +2227,31 @@ CLASS lcl_objects DEFINITION FINAL.
iv_language TYPE spras
io_log TYPE REF TO lcl_log OPTIONAL
RETURNING VALUE(rt_files) TYPE lif_defs=>ty_files_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS deserialize
IMPORTING io_repo TYPE REF TO lcl_repo
RETURNING VALUE(rt_accessed_files) TYPE lif_defs=>ty_file_signatures_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS delete
IMPORTING it_tadir TYPE lif_defs=>ty_tadir_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS jump
IMPORTING is_item TYPE lif_defs=>ty_item
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS changed_by
IMPORTING is_item TYPE lif_defs=>ty_item
RETURNING VALUE(rv_user) TYPE xubname
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS has_changed_since
IMPORTING is_item TYPE lif_defs=>ty_item
iv_timestamp TYPE timestamp
RETURNING VALUE(rv_changed) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS is_supported
IMPORTING is_item TYPE lif_defs=>ty_item
@@ -2275,7 +2269,7 @@ CLASS lcl_objects DEFINITION FINAL.
CLASS-METHODS check_duplicates
IMPORTING it_files TYPE lif_defs=>ty_files_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS create_object
IMPORTING is_item TYPE lif_defs=>ty_item
@@ -2283,7 +2277,7 @@ CLASS lcl_objects DEFINITION FINAL.
is_metadata TYPE lif_defs=>ty_metadata OPTIONAL
iv_native_only TYPE abap_bool DEFAULT abap_false
RETURNING VALUE(ri_obj) TYPE REF TO lif_object
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS
prioritize_deser
@@ -2296,24 +2290,24 @@ CLASS lcl_objects DEFINITION FINAL.
CLASS-METHODS resolve_ddic
CHANGING ct_tadir TYPE lif_defs=>ty_tadir_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS warning_overwrite
CHANGING ct_results TYPE lif_defs=>ty_results_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS warning_package
IMPORTING is_item TYPE lif_defs=>ty_item
iv_package TYPE devclass
RETURNING VALUE(rv_cancel) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS update_package_tree
IMPORTING iv_package TYPE devclass.
CLASS-METHODS delete_obj
IMPORTING is_item TYPE lif_defs=>ty_item
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS compare_remote_to_local
IMPORTING
@@ -2321,14 +2315,14 @@ CLASS lcl_objects DEFINITION FINAL.
it_remote TYPE lif_defs=>ty_files_tt
is_result TYPE lif_defs=>ty_result
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
CLASS-METHODS deserialize_objects
IMPORTING it_objects TYPE ty_deserialization_tt
iv_ddic TYPE abap_bool DEFAULT abap_false
iv_descr TYPE string
CHANGING ct_files TYPE lif_defs=>ty_file_signatures_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS resolve_ddls
CHANGING
ct_tadir TYPE lif_defs=>ty_tadir_tt.
diff --git a/src/zabapgit_objects_impl.prog.abap b/src/zabapgit_objects_impl.prog.abap
index 15c04e1e6..bcf41cbf8 100644
--- a/src/zabapgit_objects_impl.prog.abap
+++ b/src/zabapgit_objects_impl.prog.abap
@@ -141,10 +141,10 @@ CLASS lcl_objects IMPLEMENTATION.
EXPORTING
is_item = is_item.
CATCH cx_sy_create_object_error.
- lcx_exception=>raise( lv_message ).
+ zcx_abapgit_exception=>raise( lv_message ).
ENDTRY.
ELSE. " No native support? -> fail
- lcx_exception=>raise( lv_message ).
+ zcx_abapgit_exception=>raise( lv_message ).
ENDIF.
ENDTRY.
@@ -170,7 +170,7 @@ CLASS lcl_objects IMPLEMENTATION.
iv_language = lif_defs=>gc_english
iv_native_only = iv_native_only ).
rv_bool = abap_true.
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
rv_bool = abap_false.
ENDTRY.
@@ -211,7 +211,7 @@ CLASS lcl_objects IMPLEMENTATION.
li_obj = create_object( is_item = is_item
iv_language = lif_defs=>gc_english ).
rv_bool = li_obj->exists( ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
* ignore all errors and assume the object exists
rv_bool = abap_true.
ENDTRY.
@@ -238,7 +238,7 @@ CLASS lcl_objects IMPLEMENTATION.
TRY.
lcl_objects_super=>jump_adt( i_obj_name = is_item-obj_name
i_obj_type = is_item-obj_type ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
li_obj->jump( ).
ENDTRY.
ELSE.
@@ -420,7 +420,7 @@ CLASS lcl_objects IMPLEMENTATION.
WHEN 'DA'.
-to-obj_type = 'TTYP'.
WHEN OTHERS.
- lcx_exception=>raise( 'resolve_ddic, unknown object_cls' ).
+ zcx_abapgit_exception=>raise( 'resolve_ddic, unknown object_cls' ).
ENDCASE.
ENDLOOP.
@@ -523,7 +523,7 @@ CLASS lcl_objects IMPLEMENTATION.
SORT lt_files BY path ASCENDING filename ASCENDING.
DELETE ADJACENT DUPLICATES FROM lt_files COMPARING path filename.
IF lines( lt_files ) <> lines( it_files ).
- lcx_exception=>raise( 'Duplicates' ).
+ zcx_abapgit_exception=>raise( 'Duplicates' ).
ENDIF.
ENDMETHOD.
@@ -608,7 +608,7 @@ CLASS lcl_objects IMPLEMENTATION.
lv_cancel = warning_package( is_item = ls_item
iv_package = lv_package ).
IF lv_cancel = abap_true.
- lcx_exception=>raise( 'cancelled' ).
+ zcx_abapgit_exception=>raise( 'cancelled' ).
ENDIF.
CREATE OBJECT lo_files
@@ -715,9 +715,7 @@ CLASS lcl_objects IMPLEMENTATION.
lo_comparison_result->show_confirmation_dialog( ).
IF lo_comparison_result->is_result_complete_halt( ) = abap_true.
- RAISE EXCEPTION TYPE lcx_exception
- EXPORTING
- iv_text = 'Deserialization aborted by user'.
+ zcx_abapgit_exception=>raise( 'Deserialization aborted by user' ).
ENDIF.
ENDIF.
ENDIF.
diff --git a/src/zabapgit_page.prog.abap b/src/zabapgit_page.prog.abap
index d791b710a..bd7f61be4 100644
--- a/src/zabapgit_page.prog.abap
+++ b/src/zabapgit_page.prog.abap
@@ -14,11 +14,11 @@ INTERFACE lif_gui_page.
it_postdata TYPE cnht_post_data_tab OPTIONAL
EXPORTING ei_page TYPE REF TO lif_gui_page
ev_state TYPE i
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
METHODS render
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDINTERFACE.
@@ -38,11 +38,11 @@ CLASS lcl_gui_page DEFINITION ABSTRACT.
METHODS render_content ABSTRACT
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS scripts
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
diff --git a/src/zabapgit_page_background.prog.abap b/src/zabapgit_page_background.prog.abap
index 707c83174..3d1839256 100644
--- a/src/zabapgit_page_background.prog.abap
+++ b/src/zabapgit_page_background.prog.abap
@@ -32,7 +32,7 @@ CLASS lcl_gui_page_bkg_run IMPLEMENTATION.
METHOD run.
- DATA: lx_error TYPE REF TO lcx_exception,
+ DATA: lx_error TYPE REF TO zcx_abapgit_exception,
lv_text TYPE string,
lv_line TYPE i VALUE 1.
@@ -48,8 +48,8 @@ CLASS lcl_gui_page_bkg_run IMPLEMENTATION.
APPEND lv_text TO mt_text.
lv_line = lv_line + 1.
ENDDO.
- CATCH lcx_exception INTO lx_error.
- APPEND lx_error->mv_text TO mt_text.
+ CATCH zcx_abapgit_exception INTO lx_error.
+ APPEND lx_error->text TO mt_text.
ENDTRY.
ENDMETHOD.
@@ -92,7 +92,7 @@ CLASS lcl_gui_page_bkg DEFINITION FINAL
RETURNING VALUE(ro_menu) TYPE REF TO lcl_html_toolbar,
render_data
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
diff --git a/src/zabapgit_page_branch_overview.prog.abap b/src/zabapgit_page_branch_overview.prog.abap
index 719775c55..1d2949cb3 100644
--- a/src/zabapgit_page_branch_overview.prog.abap
+++ b/src/zabapgit_page_branch_overview.prog.abap
@@ -29,12 +29,12 @@ CLASS lcl_branch_overview DEFINITION FINAL.
CLASS-METHODS: run
IMPORTING io_repo TYPE REF TO lcl_repo_online
RETURNING VALUE(rt_commits) TYPE ty_commit_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS: compress
IMPORTING it_commits TYPE ty_commit_tt
RETURNING VALUE(rt_commits) TYPE ty_commit_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS: get_branches
RETURNING VALUE(rt_branches) TYPE lcl_git_branch_list=>ty_git_branch_list_tt.
@@ -44,17 +44,17 @@ CLASS lcl_branch_overview DEFINITION FINAL.
CLASS-METHODS:
parse_commits
IMPORTING it_objects TYPE lif_defs=>ty_objects_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
determine_branch
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
determine_merges
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
fixes
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_git_objects
IMPORTING io_repo TYPE REF TO lcl_repo_online
RETURNING VALUE(rt_objects) TYPE lif_defs=>ty_objects_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-DATA:
gt_branches TYPE lcl_git_branch_list=>ty_git_branch_list_tt,
@@ -308,7 +308,7 @@ CLASS lcl_gui_page_boverview DEFINITION FINAL INHERITING FROM lcl_gui_page.
METHODS:
constructor
IMPORTING io_repo TYPE REF TO lcl_repo_online
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
lif_gui_page~on_event REDEFINITION.
PROTECTED SECTION.
@@ -333,20 +333,20 @@ CLASS lcl_gui_page_boverview DEFINITION FINAL INHERITING FROM lcl_gui_page.
METHODS:
refresh
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
body
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
form_select
IMPORTING iv_name TYPE string
RETURNING VALUE(ro_html) TYPE REF TO lcl_html,
render_merge
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
decode_merge
IMPORTING it_postdata TYPE cnht_post_data_tab
RETURNING VALUE(rs_merge) TYPE ty_merge
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
build_menu
RETURNING VALUE(ro_menu) TYPE REF TO lcl_html_toolbar,
escape_branch
diff --git a/src/zabapgit_page_commit.prog.abap b/src/zabapgit_page_commit.prog.abap
index 0fb42609f..e9672771a 100644
--- a/src/zabapgit_page_commit.prog.abap
+++ b/src/zabapgit_page_commit.prog.abap
@@ -15,7 +15,7 @@ CLASS lcl_gui_page_commit DEFINITION FINAL INHERITING FROM lcl_gui_page.
constructor
IMPORTING io_repo TYPE REF TO lcl_repo_online
io_stage TYPE REF TO lcl_stage
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
lif_gui_page~on_event REDEFINITION.
PROTECTED SECTION.
@@ -32,10 +32,10 @@ CLASS lcl_gui_page_commit DEFINITION FINAL INHERITING FROM lcl_gui_page.
RETURNING VALUE(ro_html) TYPE REF TO lcl_html,
render_stage
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
render_form
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
render_text_input
IMPORTING iv_name TYPE string
iv_label TYPE string
diff --git a/src/zabapgit_page_db.prog.abap b/src/zabapgit_page_db.prog.abap
index ef8183605..dba94288b 100644
--- a/src/zabapgit_page_db.prog.abap
+++ b/src/zabapgit_page_db.prog.abap
@@ -161,7 +161,7 @@ CLASS lcl_gui_page_db DEFINITION FINAL INHERITING FROM lcl_gui_page.
METHODS explain_content
IMPORTING is_data TYPE lcl_persistence_db=>ty_content
RETURNING VALUE(rv_text) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
diff --git a/src/zabapgit_page_debug.prog.abap b/src/zabapgit_page_debug.prog.abap
index 12d5b841f..4c7cb79b0 100644
--- a/src/zabapgit_page_debug.prog.abap
+++ b/src/zabapgit_page_debug.prog.abap
@@ -14,7 +14,7 @@ CLASS lcl_gui_page_debuginfo DEFINITION FINAL INHERITING FROM lcl_gui_page.
PRIVATE SECTION.
METHODS render_debug_info
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS render_supported_object_types
RETURNING VALUE(rv_html) TYPE string.
@@ -58,7 +58,7 @@ CLASS lcl_gui_page_debuginfo IMPLEMENTATION.
ro_html->add( |abapGit version: { lif_defs=>gc_abap_version }
| ).
ro_html->add( |XML version: { lif_defs=>gc_xml_version }
| ).
ro_html->add( |GUI version: { lv_gui_version }
| ).
- ro_html->add( |LCL_TIME: { lcl_time=>get( ) }
| ).
+ ro_html->add( |LCL_TIME: { zcl_abapgit_time=>get( ) }
| ).
ro_html->add( |SY time: { sy-datum } { sy-uzeit } { sy-tzone }
| ).
ENDMETHOD. "render_debug_info
diff --git a/src/zabapgit_page_diff.prog.abap b/src/zabapgit_page_diff.prog.abap
index d2f8de46e..a1c983544 100644
--- a/src/zabapgit_page_diff.prog.abap
+++ b/src/zabapgit_page_diff.prog.abap
@@ -31,7 +31,7 @@ CLASS lcl_gui_page_diff DEFINITION FINAL INHERITING FROM lcl_gui_page.
is_file TYPE lif_defs=>ty_file OPTIONAL
is_object TYPE lif_defs=>ty_item OPTIONAL
iv_supress_stage TYPE abap_bool DEFAULT abap_false
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
lif_gui_page~on_event REDEFINITION.
PROTECTED SECTION.
@@ -76,7 +76,7 @@ CLASS lcl_gui_page_diff DEFINITION FINAL INHERITING FROM lcl_gui_page.
IMPORTING it_remote TYPE lif_defs=>ty_files_tt
it_local TYPE lif_defs=>ty_files_item_tt
is_status TYPE lif_defs=>ty_result
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS build_menu
IMPORTING iv_supress_stage TYPE abap_bool
RETURNING VALUE(ro_menu) TYPE REF TO lcl_html_toolbar.
@@ -145,7 +145,7 @@ CLASS lcl_gui_page_diff IMPLEMENTATION.
ENDIF.
IF lines( mt_diff_files ) = 0.
- lcx_exception=>raise( 'PAGE_DIFF ERROR: No diff files found' ).
+ zcx_abapgit_exception=>raise( 'PAGE_DIFF ERROR: No diff files found' ).
ENDIF.
ms_control-page_menu = build_menu( iv_supress_stage ).
@@ -179,7 +179,7 @@ CLASS lcl_gui_page_diff IMPLEMENTATION.
ENDIF.
IF IS INITIAL AND IS INITIAL.
- lcx_exception=>raise( |DIFF: file not found { is_status-filename }| ).
+ zcx_abapgit_exception=>raise( |DIFF: file not found { is_status-filename }| ).
ENDIF.
APPEND INITIAL LINE TO mt_diff_files ASSIGNING .
diff --git a/src/zabapgit_page_main.prog.abap b/src/zabapgit_page_main.prog.abap
index 3dfa00104..288565452 100644
--- a/src/zabapgit_page_main.prog.abap
+++ b/src/zabapgit_page_main.prog.abap
@@ -7,7 +7,7 @@ CLASS lcl_gui_page_main DEFINITION FINAL INHERITING FROM lcl_gui_page.
PUBLIC SECTION.
METHODS:
constructor
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
lif_gui_page~on_event REDEFINITION.
PROTECTED SECTION.
@@ -24,19 +24,19 @@ CLASS lcl_gui_page_main DEFINITION FINAL INHERITING FROM lcl_gui_page.
METHODS:
test_changed_by
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
retrieve_active_repo
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
render_toc
IMPORTING it_repo_list TYPE lcl_repo_srv=>ty_repo_tt
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
build_main_menu
RETURNING VALUE(ro_menu) TYPE REF TO lcl_html_toolbar,
render_repo
IMPORTING io_repo TYPE REF TO lcl_repo
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -77,7 +77,7 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
lcl_app=>user( )->set_repo_show( lv_key ).
TRY.
lcl_app=>repo_srv( )->get( lv_key )->refresh( ).
- CATCH lcx_exception ##NO_HANDLER.
+ CATCH zcx_abapgit_exception ##NO_HANDLER.
ENDTRY.
ev_state = lif_defs=>gc_event_state-re_render.
@@ -112,7 +112,7 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
METHOD render_content.
DATA: lt_repos TYPE lcl_repo_srv=>ty_repo_tt,
- lx_error TYPE REF TO lcx_exception,
+ lx_error TYPE REF TO zcx_abapgit_exception,
lo_tutorial TYPE REF TO lcl_gui_view_tutorial,
lo_repo LIKE LINE OF lt_repos.
@@ -122,7 +122,7 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
TRY.
lt_repos = lcl_app=>repo_srv( )->list( ).
- CATCH lcx_exception INTO lx_error.
+ CATCH zcx_abapgit_exception INTO lx_error.
ro_html->add( lcl_gui_chunk_lib=>render_error( ix_error = lx_error ) ).
RETURN.
ENDTRY.
@@ -145,7 +145,7 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
TRY.
lcl_app=>repo_srv( )->list( ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
RETURN.
ENDTRY.
@@ -155,7 +155,7 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
IF mv_show IS NOT INITIAL.
TRY. " verify the key exists
lcl_app=>repo_srv( )->get( mv_show ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
CLEAR mv_show.
lcl_app=>user( )->set_repo_show( mv_show ).
ENDTRY.
diff --git a/src/zabapgit_page_merge.prog.abap b/src/zabapgit_page_merge.prog.abap
index 7a94693c9..902b443b7 100644
--- a/src/zabapgit_page_merge.prog.abap
+++ b/src/zabapgit_page_merge.prog.abap
@@ -31,7 +31,7 @@ CLASS lcl_merge DEFINITION FINAL.
iv_source TYPE string
iv_target TYPE string
RETURNING VALUE(rs_merge) TYPE ty_merge
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-DATA: gs_merge TYPE ty_merge,
@@ -43,20 +43,20 @@ CLASS lcl_merge DEFINITION FINAL.
all_files
RETURNING VALUE(rt_files) TYPE lcl_git_porcelain=>ty_expanded_tt,
calculate_result
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
find_ancestors
IMPORTING iv_commit TYPE lif_defs=>ty_sha1
RETURNING VALUE(rt_ancestors) TYPE ty_ancestor_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
find_first_common
IMPORTING it_list1 TYPE ty_ancestor_tt
it_list2 TYPE ty_ancestor_tt
RETURNING VALUE(rs_common) TYPE ty_ancestor
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
fetch_git
IMPORTING iv_source TYPE string
iv_target TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -69,7 +69,7 @@ CLASS lcl_merge IMPLEMENTATION.
IF iv_source = iv_target.
- lcx_exception=>raise( 'source = target' ).
+ zcx_abapgit_exception=>raise( 'source = target' ).
ENDIF.
CLEAR gs_merge.
@@ -244,7 +244,7 @@ CLASS lcl_merge IMPLEMENTATION.
ENDLOOP.
ENDLOOP.
- lcx_exception=>raise( 'error finding common ancestor' ).
+ zcx_abapgit_exception=>raise( 'error finding common ancestor' ).
ENDMETHOD.
@@ -323,7 +323,7 @@ CLASS lcl_gui_page_merge DEFINITION FINAL INHERITING FROM lcl_gui_page.
IMPORTING io_repo TYPE REF TO lcl_repo_online
iv_source TYPE string
iv_target TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
lif_gui_page~on_event REDEFINITION.
PROTECTED SECTION.
@@ -365,7 +365,7 @@ CLASS lcl_gui_page_merge IMPLEMENTATION.
CASE iv_action.
WHEN c_actions-merge.
IF ms_merge-stage->count( ) = 0.
- lcx_exception=>raise( 'nothing to merge' ).
+ zcx_abapgit_exception=>raise( 'nothing to merge' ).
ENDIF.
CREATE OBJECT ei_page TYPE lcl_gui_page_commit
diff --git a/src/zabapgit_page_settings.prog.abap b/src/zabapgit_page_settings.prog.abap
index 42e207acb..dc163f4b4 100644
--- a/src/zabapgit_page_settings.prog.abap
+++ b/src/zabapgit_page_settings.prog.abap
@@ -47,7 +47,7 @@ CLASS lcl_gui_page_settings DEFINITION FINAL INHERITING FROM lcl_gui_page.
VALUE(rt_post_fields) TYPE tihttpnvp.
METHODS persist_settings
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
METHODS read_settings.
ENDCLASS.
diff --git a/src/zabapgit_page_stage.prog.abap b/src/zabapgit_page_stage.prog.abap
index 2ee7ad551..841a1d9be 100644
--- a/src/zabapgit_page_stage.prog.abap
+++ b/src/zabapgit_page_stage.prog.abap
@@ -15,7 +15,7 @@ CLASS lcl_gui_page_stage DEFINITION FINAL INHERITING FROM lcl_gui_page.
IMPORTING
io_repo TYPE REF TO lcl_repo_online
iv_seed TYPE string OPTIONAL
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
lif_gui_page~on_event REDEFINITION.
PROTECTED SECTION.
@@ -48,7 +48,7 @@ CLASS lcl_gui_page_stage DEFINITION FINAL INHERITING FROM lcl_gui_page.
process_stage_list
IMPORTING it_postdata TYPE cnht_post_data_tab
io_stage TYPE REF TO lcl_stage
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
build_menu
RETURNING VALUE(ro_menu) TYPE REF TO lcl_html_toolbar.
@@ -134,7 +134,7 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
lt_fields = lcl_html_action_utils=>parse_fields( lv_string ).
IF lines( lt_fields ) = 0.
- lcx_exception=>raise( 'process_stage_list: empty list' ).
+ zcx_abapgit_exception=>raise( 'process_stage_list: empty list' ).
ENDIF.
LOOP AT lt_fields ASSIGNING .
@@ -160,7 +160,7 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
WHEN lcl_stage=>c_method-skip.
" Do nothing
WHEN OTHERS.
- lcx_exception=>raise( |process_stage_list: unknown method { -value }| ).
+ zcx_abapgit_exception=>raise( |process_stage_list: unknown method { -value }| ).
ENDCASE.
ENDLOOP.
@@ -345,7 +345,7 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
IF sy-subrc = 0.
rv_user = lcl_objects=>changed_by( ls_local_file-item ).
ENDIF.
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
CLEAR rv_user. "Should not raise errors if user last changed by was not found
ENDTRY.
diff --git a/src/zabapgit_page_syntax_check.prog.abap b/src/zabapgit_page_syntax_check.prog.abap
new file mode 100644
index 000000000..4a9d2ec78
--- /dev/null
+++ b/src/zabapgit_page_syntax_check.prog.abap
@@ -0,0 +1,59 @@
+*&---------------------------------------------------------------------*
+*& Include ZABAPGIT_PAGE_SYNTAX_CHECK
+*&---------------------------------------------------------------------*
+
+*&---------------------------------------------------------------------*
+*& Include ZABAPGIT_PAGE_REPO_SETTINGS
+*&---------------------------------------------------------------------*
+
+CLASS lcl_gui_page_syntax_check DEFINITION FINAL INHERITING FROM lcl_gui_page.
+ PUBLIC SECTION.
+ METHODS:
+ constructor
+ IMPORTING io_repo TYPE REF TO lcl_repo.
+
+ PROTECTED SECTION.
+ CONSTANTS:
+ BEGIN OF c_action,
+ back TYPE string VALUE 'back',
+ END OF c_action.
+
+ DATA: mo_repo TYPE REF TO lcl_repo.
+
+ METHODS:
+ render_content REDEFINITION.
+
+ENDCLASS.
+
+CLASS lcl_gui_page_syntax_check IMPLEMENTATION.
+
+ METHOD constructor.
+ super->constructor( ).
+ ms_control-page_title = 'SYNTAX CHECK'.
+ mo_repo = io_repo.
+ ENDMETHOD. " constructor.
+
+ METHOD render_content.
+
+ DATA: lt_result TYPE scit_alvlist,
+ ls_result LIKE LINE OF lt_result.
+
+
+ lt_result = zcl_abapgit_syntax_check=>run( mo_repo->get_package( ) ).
+
+ CREATE OBJECT ro_html.
+ ro_html->add( '' ).
+
+ IF lines( lt_result ) = 0.
+ ro_html->add( 'No errors' ).
+ ENDIF.
+
+ LOOP AT lt_result INTO ls_result.
+ ro_html->add( |{ ls_result-objtype } { ls_result-objname } { ls_result-kind } { ls_result-text }
| ).
+ ENDLOOP.
+
+ ro_html->add( '
' ).
+
+ ENDMETHOD. "render_content
+
+ENDCLASS. "lcl_gui_page_debuginfo
diff --git a/src/zabapgit_page_syntax_check.prog.xml b/src/zabapgit_page_syntax_check.prog.xml
new file mode 100644
index 000000000..6d12e98a3
--- /dev/null
+++ b/src/zabapgit_page_syntax_check.prog.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ ZABAPGIT_PAGE_SYNTAX_CHECK
+ A
+ X
+ I
+ E
+ X
+
+
+ -
+ R
+ Include ZABAPGIT_PAGE_SYNTAX_CHECK
+ 34
+
+
+
+
+
diff --git a/src/zabapgit_persistence.prog.abap b/src/zabapgit_persistence.prog.abap
index 121077330..692871683 100644
--- a/src/zabapgit_persistence.prog.abap
+++ b/src/zabapgit_persistence.prog.abap
@@ -7,7 +7,7 @@ CLASS lcl_settings DEFINITION DEFERRED.
CLASS lcl_persist_migrate DEFINITION FINAL.
PUBLIC SECTION.
- CLASS-METHODS: run RAISING lcx_exception.
+ CLASS-METHODS: run RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CONSTANTS:
@@ -15,17 +15,17 @@ CLASS lcl_persist_migrate DEFINITION FINAL.
CLASS-METHODS:
migrate_settings
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
migrate_repo
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
migrate_user
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
table_create
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
table_exists
RETURNING VALUE(rv_exists) TYPE abap_bool,
lock_create
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
lock_exists
RETURNING VALUE(rv_exists) TYPE abap_bool,
settings_exists
@@ -60,21 +60,21 @@ CLASS lcl_persistence_db DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
IMPORTING iv_type TYPE ty_type
iv_value TYPE ty_content-value
iv_data TYPE ty_content-data_str
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
delete
IMPORTING iv_type TYPE ty_type
iv_value TYPE ty_content-value
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
update
IMPORTING iv_type TYPE ty_type
iv_value TYPE ty_content-value
iv_data TYPE ty_content-data_str
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
modify
IMPORTING iv_type TYPE ty_type
iv_value TYPE ty_content-value
iv_data TYPE ty_content-data_str
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read
IMPORTING iv_type TYPE ty_type
iv_value TYPE ty_content-value
@@ -84,13 +84,13 @@ CLASS lcl_persistence_db DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
IMPORTING iv_mode TYPE enqmode DEFAULT 'E'
iv_type TYPE ty_type
iv_value TYPE ty_content-value
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
METHODS: validate_and_unprettify_xml
IMPORTING iv_xml TYPE string
RETURNING VALUE(rv_xml) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -128,42 +128,42 @@ CLASS lcl_persistence_repo DEFINITION FINAL.
METHODS list
RETURNING VALUE(rt_repos) TYPE tt_repo
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update_sha1
IMPORTING iv_key TYPE ty_repo-key
iv_branch_sha1 TYPE ty_repo_xml-sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update_local_checksums
IMPORTING iv_key TYPE ty_repo-key
it_checksums TYPE ty_repo_xml-local_checksums
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update_url
IMPORTING iv_key TYPE ty_repo-key
iv_url TYPE ty_repo_xml-url
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update_branch_name
IMPORTING iv_key TYPE ty_repo-key
iv_branch_name TYPE ty_repo_xml-branch_name
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update_head_branch
IMPORTING iv_key TYPE ty_repo-key
iv_head_branch TYPE ty_repo_xml-head_branch
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update_offline
IMPORTING iv_key TYPE ty_repo-key
iv_offline TYPE ty_repo_xml-offline
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update_dot_abapgit
IMPORTING iv_key TYPE ty_repo-key
is_dot_abapgit TYPE lcl_dot_abapgit=>ty_dot_abapgit
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS add
IMPORTING iv_url TYPE string
@@ -173,22 +173,22 @@ CLASS lcl_persistence_repo DEFINITION FINAL.
iv_offline TYPE sap_bool DEFAULT abap_false
is_dot_abapgit TYPE lcl_dot_abapgit=>ty_dot_abapgit
RETURNING VALUE(rv_key) TYPE ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS delete
IMPORTING iv_key TYPE ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS read
IMPORTING iv_key TYPE ty_repo-key
RETURNING VALUE(rs_repo) TYPE ty_repo
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
lcx_not_found.
METHODS lock
IMPORTING iv_mode TYPE enqmode
iv_key TYPE ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CONSTANTS c_type_repo TYPE lcl_persistence_db=>ty_type VALUE 'REPO'.
@@ -198,7 +198,7 @@ CLASS lcl_persistence_repo DEFINITION FINAL.
METHODS from_xml
IMPORTING iv_repo_xml_string TYPE string
RETURNING VALUE(rs_repo) TYPE ty_repo_xml
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS to_xml
IMPORTING is_repo TYPE ty_repo
@@ -206,7 +206,7 @@ CLASS lcl_persistence_repo DEFINITION FINAL.
METHODS get_next_id
RETURNING VALUE(rv_next_repo_id) TYPE lcl_persistence_db=>ty_content-value
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -244,20 +244,20 @@ CLASS lcl_persist_background DEFINITION FINAL.
METHODS list
RETURNING VALUE(rt_list) TYPE tt_background
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS modify
IMPORTING is_data TYPE ty_background
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS delete
IMPORTING iv_key TYPE ty_background-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS exists
IMPORTING iv_key TYPE ty_background-key
RETURNING VALUE(rv_yes) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CONSTANTS c_type TYPE lcl_persistence_db=>ty_type VALUE 'BACKGROUND'.
@@ -268,7 +268,7 @@ CLASS lcl_persist_background DEFINITION FINAL.
METHODS from_xml
IMPORTING iv_string TYPE string
RETURNING VALUE(rs_xml) TYPE ty_xml
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS to_xml
IMPORTING is_background TYPE ty_background
@@ -341,12 +341,12 @@ CLASS lcl_settings DEFINITION FINAL.
RETURNING
VALUE(ev_settings_xml) TYPE string
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
set_xml_settings
IMPORTING
iv_settings_xml TYPE string
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
set_defaults.
PRIVATE SECTION.
@@ -372,7 +372,7 @@ CLASS lcl_persist_settings DEFINITION FINAL.
IMPORTING
io_settings TYPE REF TO lcl_settings
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
METHODS read
RETURNING
VALUE(ro_settings) TYPE REF TO lcl_settings.
@@ -483,104 +483,104 @@ CLASS lcl_persistence_user DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
METHODS set_default_git_user_name
IMPORTING iv_username TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_default_git_user_name
RETURNING VALUE(rv_username) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS set_default_git_user_email
IMPORTING iv_email TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_default_git_user_email
RETURNING VALUE(rv_email) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS set_repo_show
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_repo_show
RETURNING VALUE(rv_key) TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS set_repo_git_user_name
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
iv_username TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_repo_git_user_name
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
RETURNING VALUE(rv_username) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS set_repo_login
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
iv_login TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_repo_login
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
RETURNING VALUE(rv_login) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS set_repo_git_user_email
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
iv_email TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_repo_git_user_email
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
RETURNING VALUE(rv_email) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS set_repo_last_change_seen
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
iv_version TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_repo_last_change_seen
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
RETURNING VALUE(rv_version) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS toggle_hide_files
RETURNING VALUE(rv_hide) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_hide_files
RETURNING VALUE(rv_hide) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS toggle_changes_only
RETURNING VALUE(rv_changes_only) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_changes_only
RETURNING VALUE(rv_changes_only) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS toggle_diff_unified
RETURNING VALUE(rv_diff_unified) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_diff_unified
RETURNING VALUE(rv_diff_unified) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_favorites
RETURNING VALUE(rt_favorites) TYPE tt_favorites
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS toggle_favorite
IMPORTING iv_repo_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS is_favorite_repo
IMPORTING iv_repo_key TYPE lcl_persistence_repo=>ty_repo-key
RETURNING VALUE(rv_yes) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CONSTANTS c_type_user TYPE lcl_persistence_db=>ty_type VALUE 'USER'.
@@ -614,7 +614,7 @@ CLASS lcl_persistence_user DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
METHODS from_xml
IMPORTING iv_xml TYPE string
RETURNING VALUE(rs_user) TYPE ty_user
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS to_xml
IMPORTING is_user TYPE ty_user
@@ -622,21 +622,21 @@ CLASS lcl_persistence_user DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
METHODS read
RETURNING VALUE(rs_user) TYPE ty_user
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update
IMPORTING is_user TYPE ty_user
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS read_repo_config
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
RETURNING VALUE(rs_repo_config) TYPE ty_repo_config
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update_repo_config
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
is_repo_config TYPE ty_repo_config
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_persistence_user DEFINITION
@@ -971,7 +971,7 @@ CLASS lcl_persistence_db IMPLEMENTATION.
system_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Could not aquire lock { iv_type } { iv_value }| ).
+ zcx_abapgit_exception=>raise( |Could not aquire lock { iv_type } { iv_value }| ).
ENDIF.
* trigger dummy update task to automatically release locks at commit
@@ -1002,7 +1002,7 @@ CLASS lcl_persistence_db IMPLEMENTATION.
WHERE type = iv_type
AND value = iv_value.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'DB Delete failed' ).
+ zcx_abapgit_exception=>raise( 'DB Delete failed' ).
ENDIF.
ENDMETHOD.
@@ -1029,7 +1029,7 @@ CLASS lcl_persistence_db IMPLEMENTATION.
WHERE type = iv_type
AND value = iv_value.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'DB update failed' ).
+ zcx_abapgit_exception=>raise( 'DB update failed' ).
ENDIF.
ENDMETHOD. "update
@@ -1047,7 +1047,7 @@ CLASS lcl_persistence_db IMPLEMENTATION.
MODIFY (c_tabname) FROM ls_content.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'DB modify failed' ).
+ zcx_abapgit_exception=>raise( 'DB modify failed' ).
ENDIF.
ENDMETHOD.
@@ -1107,7 +1107,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
TRY.
ls_repo = read( iv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'key not found' ).
+ zcx_abapgit_exception=>raise( 'key not found' ).
ENDTRY.
ls_repo-dot_abapgit = is_dot_abapgit.
@@ -1143,7 +1143,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
TRY.
ls_repo = read( iv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'key not found' ).
+ zcx_abapgit_exception=>raise( 'key not found' ).
ENDTRY.
ls_repo-local_checksums = it_checksums.
@@ -1163,7 +1163,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
IF iv_url IS INITIAL.
- lcx_exception=>raise( 'update, url empty' ).
+ zcx_abapgit_exception=>raise( 'update, url empty' ).
ENDIF.
ASSERT NOT iv_key IS INITIAL.
@@ -1171,7 +1171,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
TRY.
ls_repo = read( iv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'key not found' ).
+ zcx_abapgit_exception=>raise( 'key not found' ).
ENDTRY.
ls_repo-url = iv_url.
@@ -1195,7 +1195,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
TRY.
ls_repo = read( iv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'key not found' ).
+ zcx_abapgit_exception=>raise( 'key not found' ).
ENDTRY.
ls_repo-branch_name = iv_branch_name.
@@ -1219,7 +1219,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
TRY.
ls_repo = read( iv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'key not found' ).
+ zcx_abapgit_exception=>raise( 'key not found' ).
ENDTRY.
ls_repo-head_branch = iv_head_branch.
@@ -1242,7 +1242,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
TRY.
ls_repo = read( iv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'key not found' ).
+ zcx_abapgit_exception=>raise( 'key not found' ).
ENDTRY.
ls_repo-offline = iv_offline.
@@ -1266,7 +1266,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
TRY.
ls_repo = read( iv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'key not found' ).
+ zcx_abapgit_exception=>raise( 'key not found' ).
ENDTRY.
ls_repo-sha1 = iv_branch_sha1.
@@ -1351,7 +1351,7 @@ CLASS lcl_persistence_repo IMPLEMENTATION.
RESULT repo = rs_repo ##NO_TEXT.
IF rs_repo IS INITIAL.
- lcx_exception=>raise( 'Inconsistent repo metadata' ).
+ zcx_abapgit_exception=>raise( 'Inconsistent repo metadata' ).
ENDIF.
ENDMETHOD.
@@ -1509,56 +1509,56 @@ CLASS lcl_persist_migrate IMPLEMENTATION.
lcl_app=>db( )->delete(
iv_type = 'SETTINGS'
iv_value = 'PROXY_URL' ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
ENDTRY.
TRY.
lcl_app=>db( )->delete(
iv_type = 'SETTINGS'
iv_value = 'PROXY_PORT' ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
ENDTRY.
TRY.
lcl_app=>db( )->delete(
iv_type = 'SETTINGS'
iv_value = 'PROXY_AUTH' ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
ENDTRY.
TRY.
lcl_app=>db( )->delete(
iv_type = 'SETTINGS'
iv_value = 'CRIT_TESTS' ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
ENDTRY.
TRY.
lcl_app=>db( )->delete(
iv_type = 'SETTINGS'
iv_value = 'MAX_LINES' ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
ENDTRY.
TRY.
lcl_app=>db( )->delete(
iv_type = 'SETTINGS'
iv_value = 'ADT_JUMP' ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
ENDTRY.
TRY.
lcl_app=>db( )->delete(
iv_type = 'SETTINGS'
iv_value = 'COMMENT_LEN' ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
ENDTRY.
TRY.
lcl_app=>db( )->delete(
iv_type = 'SETTINGS'
iv_value = 'BODY_SIZE' ).
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
ENDTRY.
ENDMETHOD.
@@ -1669,7 +1669,7 @@ CLASS lcl_persist_migrate IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'migrate, error from DDIF_ENQU_PUT' ).
+ zcx_abapgit_exception=>raise( 'migrate, error from DDIF_ENQU_PUT' ).
ENDIF.
lv_obj_name = lcl_persistence_db=>c_lock.
@@ -1684,7 +1684,7 @@ CLASS lcl_persist_migrate IMPLEMENTATION.
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'migrate, error from TR_TADIR_INTERFACE' ).
+ zcx_abapgit_exception=>raise( 'migrate, error from TR_TADIR_INTERFACE' ).
ENDIF.
CALL FUNCTION 'DDIF_ENQU_ACTIVATE'
@@ -1695,7 +1695,7 @@ CLASS lcl_persist_migrate IMPLEMENTATION.
put_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'migrate, error from DDIF_ENQU_ACTIVATE' ).
+ zcx_abapgit_exception=>raise( 'migrate, error from DDIF_ENQU_ACTIVATE' ).
ENDIF.
ENDMETHOD.
@@ -1770,7 +1770,7 @@ CLASS lcl_persist_migrate IMPLEMENTATION.
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'migrate, error from DDIF_TABL_PUT' ).
+ zcx_abapgit_exception=>raise( 'migrate, error from DDIF_TABL_PUT' ).
ENDIF.
lv_obj_name = lcl_persistence_db=>c_tabname.
@@ -1785,7 +1785,7 @@ CLASS lcl_persist_migrate IMPLEMENTATION.
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'migrate, error from TR_TADIR_INTERFACE' ).
+ zcx_abapgit_exception=>raise( 'migrate, error from TR_TADIR_INTERFACE' ).
ENDIF.
CALL FUNCTION 'DDIF_TABL_ACTIVATE'
@@ -1799,7 +1799,7 @@ CLASS lcl_persist_migrate IMPLEMENTATION.
put_failure = 2
OTHERS = 3.
IF sy-subrc <> 0 OR lv_rc <> 0.
- lcx_exception=>raise( 'migrate, error from DDIF_TABL_ACTIVATE' ).
+ zcx_abapgit_exception=>raise( 'migrate, error from DDIF_TABL_ACTIVATE' ).
ENDIF.
ENDMETHOD.
@@ -1943,7 +1943,7 @@ CLASS lcl_persist_settings IMPLEMENTATION.
lcl_app=>db( )->read( iv_type = lcl_settings=>c_dbtype_settings
iv_value = '' ) ).
- CATCH lcx_not_found lcx_exception.
+ CATCH lcx_not_found zcx_abapgit_exception.
ro_settings->set_defaults( ).
diff --git a/src/zabapgit_persistence_old.prog.abap b/src/zabapgit_persistence_old.prog.abap
index 7c870c7c9..bf543a931 100644
--- a/src/zabapgit_persistence_old.prog.abap
+++ b/src/zabapgit_persistence_old.prog.abap
@@ -25,13 +25,13 @@ CLASS lcl_persistence DEFINITION FINAL FRIENDS lcl_persist_migrate.
METHODS list
RETURNING VALUE(rt_repos) TYPE ty_repos_persi_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS update
IMPORTING iv_url TYPE ty_repo_persi-url
iv_branch_name TYPE ty_repo_persi-branch_name
iv_branch TYPE lif_defs=>ty_sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS add
IMPORTING iv_url TYPE string
@@ -39,31 +39,31 @@ CLASS lcl_persistence DEFINITION FINAL FRIENDS lcl_persist_migrate.
iv_branch TYPE lif_defs=>ty_sha1 OPTIONAL
iv_package TYPE devclass
iv_offline TYPE sap_bool DEFAULT abap_false
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS delete
IMPORTING iv_url TYPE ty_repo_persi-url
iv_branch_name TYPE ty_repo_persi-branch_name
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS read_text_online
RETURNING VALUE(rt_repos) TYPE ty_repos_persi_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS save_text_online
IMPORTING it_repos TYPE ty_repos_persi_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS header_online
RETURNING VALUE(rs_header) TYPE thead.
METHODS read_text_offline
RETURNING VALUE(rt_repos) TYPE ty_repos_persi_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS save_text_offline
IMPORTING it_repos TYPE ty_repos_persi_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS header_offline
RETURNING VALUE(rs_header) TYPE thead.
@@ -71,12 +71,12 @@ CLASS lcl_persistence DEFINITION FINAL FRIENDS lcl_persist_migrate.
METHODS read_text
IMPORTING is_header TYPE thead
RETURNING VALUE(rt_lines) TYPE tlinetab
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS save_text
IMPORTING is_header TYPE thead
it_lines TYPE tlinetab
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_persistence DEFINITION
@@ -102,7 +102,7 @@ CLASS lcl_persistence IMPLEMENTATION.
OTHERS = 5.
IF sy-subrc <> 0.
ROLLBACK WORK. "#EC CI_ROLLBACK
- lcx_exception=>raise( 'error from SAVE_TEXT' ).
+ zcx_abapgit_exception=>raise( 'error from SAVE_TEXT' ).
ENDIF.
ENDMETHOD. "save_text
@@ -130,7 +130,7 @@ CLASS lcl_persistence IMPLEMENTATION.
DELETE lt_repos WHERE url = iv_url AND branch_name = iv_branch_name.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'repo not found, delete' ).
+ zcx_abapgit_exception=>raise( 'repo not found, delete' ).
ENDIF.
save_text_online( lt_repos ).
@@ -207,7 +207,7 @@ CLASS lcl_persistence IMPLEMENTATION.
READ TABLE lt_repos WITH KEY url = iv_url branch_name = iv_branch_name
TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
- lcx_exception=>raise( 'already inserted' ).
+ zcx_abapgit_exception=>raise( 'already inserted' ).
ENDIF.
APPEND INITIAL LINE TO lt_repos ASSIGNING .
@@ -230,7 +230,7 @@ CLASS lcl_persistence IMPLEMENTATION.
IF iv_branch IS INITIAL.
- lcx_exception=>raise( 'update, sha empty' ).
+ zcx_abapgit_exception=>raise( 'update, sha empty' ).
ENDIF.
lt_repos = list( ).
@@ -238,7 +238,7 @@ CLASS lcl_persistence IMPLEMENTATION.
READ TABLE lt_repos ASSIGNING
WITH KEY url = iv_url branch_name = iv_branch_name.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'persist update, repo not found' ).
+ zcx_abapgit_exception=>raise( 'persist update, repo not found' ).
ENDIF.
-sha1 = iv_branch.
@@ -275,7 +275,7 @@ CLASS lcl_persistence IMPLEMENTATION.
IF sy-subrc = 4.
RETURN.
ELSEIF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from READ_TEXT' ).
+ zcx_abapgit_exception=>raise( 'Error from READ_TEXT' ).
ENDIF.
ENDMETHOD. "read_text
@@ -297,7 +297,7 @@ CLASS lcl_persistence IMPLEMENTATION.
IF lines( lt_lines ) MOD 4 <> 0.
* if this happens, delete text ZABAPGIT in SO10 or edit the text
* manually, so it contains the right information
- lcx_exception=>raise( 'Persistence, text broken' ).
+ zcx_abapgit_exception=>raise( 'Persistence, text broken' ).
ENDIF.
CLEAR ls_repo.
@@ -308,7 +308,7 @@ CLASS lcl_persistence IMPLEMENTATION.
ls_repo-package = -tdline.
IF ls_repo-url IS INITIAL OR ls_repo-branch_name IS INITIAL.
- lcx_exception=>raise( 'Persistence, text broken 2' ).
+ zcx_abapgit_exception=>raise( 'Persistence, text broken 2' ).
ENDIF.
APPEND ls_repo TO rt_repos.
CLEAR ls_repo.
@@ -342,13 +342,13 @@ CLASS lcl_persistence IMPLEMENTATION.
IF lines( lt_lines ) MOD 2 <> 0.
* if this happens, delete text ZABAPGIT in SO10 or edit the text
* manually, so it contains the right information
- lcx_exception=>raise( 'Persistence, text broken' ).
+ zcx_abapgit_exception=>raise( 'Persistence, text broken' ).
ENDIF.
CLEAR ls_repo.
LOOP AT lt_lines ASSIGNING .
IF -tdline IS INITIAL.
- lcx_exception=>raise( 'Persistence, text broken' ).
+ zcx_abapgit_exception=>raise( 'Persistence, text broken' ).
ENDIF.
IF ls_repo-url IS INITIAL.
ls_repo-url = -tdline.
@@ -386,36 +386,36 @@ CLASS lcl_user DEFINITION FINAL FRIENDS lcl_persist_migrate.
CLASS-METHODS set_username
IMPORTING iv_user TYPE xubname DEFAULT sy-uname
iv_username TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS get_username
IMPORTING iv_user TYPE xubname DEFAULT sy-uname
RETURNING VALUE(rv_username) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS set_email
IMPORTING iv_user TYPE xubname DEFAULT sy-uname
iv_email TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS get_email
IMPORTING iv_user TYPE xubname DEFAULT sy-uname
RETURNING VALUE(rv_email) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS list
RETURNING VALUE(rt_data) TYPE ty_user_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS read
IMPORTING iv_name TYPE tdobname
RETURNING VALUE(rv_value) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS save
IMPORTING iv_name TYPE tdobname
iv_value TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_user DEFINITION
@@ -452,7 +452,7 @@ CLASS lcl_user IMPLEMENTATION.
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 4 AND sy-subrc <> 0.
- lcx_exception=>raise( 'error from READ_TEXT' ).
+ zcx_abapgit_exception=>raise( 'error from READ_TEXT' ).
ENDIF.
READ TABLE lt_lines INTO ls_line INDEX 1.
@@ -491,7 +491,7 @@ CLASS lcl_user IMPLEMENTATION.
OTHERS = 5.
IF sy-subrc <> 0.
ROLLBACK WORK. "#EC CI_ROLLBACK
- lcx_exception=>raise( 'error from SAVE_TEXT' ).
+ zcx_abapgit_exception=>raise( 'error from SAVE_TEXT' ).
ENDIF.
COMMIT WORK.
diff --git a/src/zabapgit_popups.prog.abap b/src/zabapgit_popups.prog.abap
index f97e81c9f..a854721f6 100644
--- a/src/zabapgit_popups.prog.abap
+++ b/src/zabapgit_popups.prog.abap
@@ -19,27 +19,27 @@ CLASS lcl_popups DEFINITION FINAL.
popup_package_export
EXPORTING ev_package TYPE devclass
ev_folder_logic TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
popup_object
RETURNING VALUE(rs_tadir) TYPE tadir
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
create_branch_popup
EXPORTING ev_name TYPE string
ev_cancel TYPE abap_bool
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
run_page_class_popup
EXPORTING ev_name TYPE string
ev_cancel TYPE abap_bool
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
repo_new_offline
RETURNING VALUE(rs_popup) TYPE ty_popup
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
branch_list_popup
IMPORTING iv_url TYPE string
iv_default_branch TYPE string OPTIONAL
iv_show_new_option TYPE abap_bool OPTIONAL
RETURNING VALUE(rs_branch) TYPE lcl_git_branch_list=>ty_git_branch
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
repo_popup
IMPORTING iv_url TYPE string
iv_package TYPE devclass OPTIONAL
@@ -48,7 +48,7 @@ CLASS lcl_popups DEFINITION FINAL.
iv_freeze_url TYPE abap_bool OPTIONAL
iv_title TYPE clike DEFAULT 'Clone repository ...'
RETURNING VALUE(rs_popup) TYPE ty_popup
- RAISING lcx_exception ##NO_TEXT,
+ RAISING zcx_abapgit_exception ##NO_TEXT,
popup_to_confirm
IMPORTING
titlebar TYPE clike
@@ -60,27 +60,27 @@ CLASS lcl_popups DEFINITION FINAL.
default_button TYPE char1 DEFAULT '1'
display_cancel_button TYPE char1 DEFAULT abap_true
RETURNING VALUE(rv_answer) TYPE char1
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
popup_to_inform
IMPORTING
titlebar TYPE clike
text_message TYPE clike
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
popup_to_create_package
EXPORTING es_package_data TYPE scompkdtln
ev_create TYPE boolean
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
popup_to_create_transp_branch
IMPORTING it_transport_headers TYPE trwbo_request_headers
RETURNING VALUE(rs_transport_branch) TYPE lif_defs=>ty_transport_to_branch
- RAISING lcx_exception
+ RAISING zcx_abapgit_exception
lcx_cancel,
popup_to_select_transports
RETURNING VALUE(rt_trkorr) TYPE trwbo_request_headers,
popup_select_obj_overwrite
IMPORTING it_list TYPE lif_defs=>ty_results_tt
RETURNING VALUE(rt_list) TYPE lif_defs=>ty_results_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
TYPES: ty_sval_tt TYPE STANDARD TABLE OF sval WITH DEFAULT KEY.
@@ -164,7 +164,7 @@ CLASS lcl_popups IMPLEMENTATION.
error_in_fields = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from POPUP_GET_VALUES' ).
+ zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_returncode = 'A'.
@@ -217,7 +217,7 @@ CLASS lcl_popups IMPLEMENTATION.
error_in_fields = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from POPUP_GET_VALUES' ).
+ zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_returncode = 'A'.
@@ -263,7 +263,7 @@ CLASS lcl_popups IMPLEMENTATION.
error_in_fields = 1
OTHERS = 2 ##NO_TEXT.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from POPUP_GET_VALUES' ).
+ zcx_abapgit_exception=>raise( 'error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_answer = 'A'.
@@ -304,7 +304,7 @@ CLASS lcl_popups IMPLEMENTATION.
error_in_fields = 1
OTHERS = 2 ##NO_TEXT.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from POPUP_GET_VALUES' ).
+ zcx_abapgit_exception=>raise( 'error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_answer = 'A'.
@@ -361,7 +361,7 @@ CLASS lcl_popups IMPLEMENTATION.
error_in_fields = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from POPUP_GET_VALUES' ).
+ zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_returncode = 'A'.
@@ -458,7 +458,7 @@ CLASS lcl_popups IMPLEMENTATION.
too_much_marks = 3
OTHERS = 4. "#EC NOTEXT
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ).
+ zcx_abapgit_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ).
ENDIF.
IF lv_answer = 'A'. " cancel
@@ -554,7 +554,7 @@ CLASS lcl_popups IMPLEMENTATION.
error_in_fields = 1
OTHERS = 2. "#EC NOTEXT
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from POPUP_GET_VALUES' ).
+ zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_returncode = 'A'.
rs_popup-cancel = abap_true.
@@ -595,7 +595,7 @@ CLASS lcl_popups IMPLEMENTATION.
text_not_found = 1
OTHERS = 2. "#EC NOTEXT
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from POPUP_TO_CONFIRM' ).
+ zcx_abapgit_exception=>raise( 'error from POPUP_TO_CONFIRM' ).
ENDIF.
ENDMETHOD. "popup_to_confirm
@@ -628,7 +628,7 @@ CLASS lcl_popups IMPLEMENTATION.
IF sy-subrc = 1.
* looks like the function module used does not exist on all
* versions since 702, so show an error
- lcx_exception=>raise( 'Function module PB_POPUP_PACKAGE_CREATE does not exist' ).
+ zcx_abapgit_exception=>raise( 'Function module PB_POPUP_PACKAGE_CREATE does not exist' ).
ENDIF.
CALL FUNCTION 'PB_POPUP_PACKAGE_CREATE'
@@ -711,7 +711,7 @@ CLASS lcl_popups IMPLEMENTATION.
error_in_fields = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error from POPUP_GET_VALUES' ).
+ zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_returncode = 'A'.
@@ -793,7 +793,7 @@ CLASS lcl_popups IMPLEMENTATION.
mo_select_list_popup->display( ).
CATCH cx_salv_msg.
- lcx_exception=>raise( 'Error from POPUP_SELECT_OBJ_OVERWRITE' ).
+ zcx_abapgit_exception=>raise( 'Error from POPUP_SELECT_OBJ_OVERWRITE' ).
ENDTRY.
LOOP AT lt_popup_list INTO ls_popup_list WHERE selected = abap_true.
diff --git a/src/zabapgit_repo.prog.abap b/src/zabapgit_repo.prog.abap
index 1c0b7b2d8..cc45e32c5 100644
--- a/src/zabapgit_repo.prog.abap
+++ b/src/zabapgit_repo.prog.abap
@@ -15,19 +15,19 @@ CLASS lcl_repo DEFINITION ABSTRACT FRIENDS lcl_repo_srv.
RETURNING VALUE(rv_key) TYPE lcl_persistence_db=>ty_value,
get_name
RETURNING VALUE(rv_name) TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_files_local
IMPORTING io_log TYPE REF TO lcl_log OPTIONAL
it_filter TYPE scts_tadir OPTIONAL
RETURNING VALUE(rt_files) TYPE lif_defs=>ty_files_item_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_local_checksums
RETURNING VALUE(rt_checksums) TYPE lcl_persistence_repo=>ty_local_checksum_tt,
get_local_checksums_per_file
RETURNING VALUE(rt_checksums) TYPE lif_defs=>ty_file_signatures_tt,
get_files_remote
RETURNING VALUE(rt_files) TYPE lif_defs=>ty_files_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_package
RETURNING VALUE(rv_package) TYPE lcl_persistence_repo=>ty_repo-package,
get_master_language
@@ -37,29 +37,29 @@ CLASS lcl_repo DEFINITION ABSTRACT FRIENDS lcl_repo_srv.
ignore_subpackages
RETURNING VALUE(rv_yes) TYPE sap_bool,
delete
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_dot_abapgit
RETURNING VALUE(ro_dot_abapgit) TYPE REF TO lcl_dot_abapgit,
set_dot_abapgit
IMPORTING io_dot_abapgit TYPE REF TO lcl_dot_abapgit
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
refresh
IMPORTING iv_drop_cache TYPE abap_bool DEFAULT abap_false
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
refresh_local, " For testing purposes, maybe removed later
update_local_checksums
IMPORTING it_files TYPE lif_defs=>ty_file_signatures_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
rebuild_local_checksums
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
find_remote_dot_abapgit
RETURNING VALUE(ro_dot) TYPE REF TO lcl_dot_abapgit
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
is_offline
RETURNING VALUE(rv_offline) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PROTECTED SECTION.
DATA: mt_local TYPE lif_defs=>ty_files_item_tt,
@@ -77,7 +77,7 @@ CLASS lcl_repo DEFINITION ABSTRACT FRIENDS lcl_repo_srv.
iv_head_branch TYPE lcl_persistence_repo=>ty_repo-head_branch OPTIONAL
iv_offline TYPE lcl_persistence_repo=>ty_repo-offline OPTIONAL
is_dot_abapgit TYPE lcl_persistence_repo=>ty_repo-dot_abapgit OPTIONAL
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_repo DEFINITION
@@ -91,7 +91,7 @@ CLASS lcl_repo_online DEFINITION INHERITING FROM lcl_repo FINAL.
refresh REDEFINITION,
constructor
IMPORTING is_data TYPE lcl_persistence_repo=>ty_repo
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_url
RETURNING VALUE(rv_url) TYPE lcl_persistence_repo=>ty_repo-url,
get_branch_name
@@ -100,42 +100,42 @@ CLASS lcl_repo_online DEFINITION INHERITING FROM lcl_repo FINAL.
RETURNING VALUE(rv_name) TYPE lcl_persistence_repo=>ty_repo-head_branch,
get_branches
RETURNING VALUE(ro_branches) TYPE REF TO lcl_git_branch_list
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
set_url
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
set_branch_name
IMPORTING iv_branch_name TYPE lcl_persistence_repo=>ty_repo-branch_name
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
set_new_remote
IMPORTING iv_url TYPE lcl_persistence_repo=>ty_repo-url
iv_branch_name TYPE lcl_persistence_repo=>ty_repo-branch_name
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_sha1_local
RETURNING VALUE(rv_sha1) TYPE lcl_persistence_repo=>ty_repo-sha1,
get_sha1_remote
RETURNING VALUE(rv_sha1) TYPE lcl_persistence_repo=>ty_repo-sha1
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_files_remote REDEFINITION,
get_objects
RETURNING VALUE(rt_objects) TYPE lif_defs=>ty_objects_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
deserialize REDEFINITION,
status
IMPORTING io_log TYPE REF TO lcl_log OPTIONAL
RETURNING VALUE(rt_results) TYPE lif_defs=>ty_results_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
reset_status,
rebuild_local_checksums REDEFINITION,
push
IMPORTING is_comment TYPE lif_defs=>ty_comment
io_stage TYPE REF TO lcl_stage
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_unnecessary_local_objs
RETURNING VALUE(rt_unnecessary_local_objects) TYPE LIF_DEFS=>TY_TADIR_TT
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
delete_unnecessary_local_objs
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
PRIVATE SECTION.
DATA:
@@ -148,14 +148,14 @@ CLASS lcl_repo_online DEFINITION INHERITING FROM lcl_repo FINAL.
METHODS:
handle_stage_ignore
IMPORTING io_stage TYPE REF TO lcl_stage
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
initialize
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
actualize_head_branch
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
delete_initial_online_repo
IMPORTING iv_commit TYPE flag
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_repo_online DEFINITION
@@ -168,7 +168,7 @@ CLASS lcl_repo_offline DEFINITION INHERITING FROM lcl_repo FINAL.
METHODS:
set_files_remote
IMPORTING it_files TYPE lif_defs=>ty_files_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_repo_offline DEFINITION
@@ -183,43 +183,43 @@ CLASS lcl_repo_srv DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
METHODS list
RETURNING VALUE(rt_list) TYPE ty_repo_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS refresh
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS new_online
IMPORTING iv_url TYPE string
iv_branch_name TYPE string
iv_package TYPE devclass
RETURNING VALUE(ro_repo) TYPE REF TO lcl_repo_online
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS new_offline
IMPORTING iv_url TYPE string
iv_package TYPE devclass
RETURNING VALUE(ro_repo) TYPE REF TO lcl_repo_offline
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS delete
IMPORTING io_repo TYPE REF TO lcl_repo
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get
IMPORTING iv_key TYPE lcl_persistence_db=>ty_value
RETURNING VALUE(ro_repo) TYPE REF TO lcl_repo
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS is_repo_installed
IMPORTING iv_url TYPE string
iv_target_package TYPE devclass OPTIONAL
RETURNING VALUE(rv_installed) TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS switch_repo_type
IMPORTING iv_key TYPE lcl_persistence_db=>ty_value
iv_offline TYPE abap_bool
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
@@ -231,10 +231,10 @@ CLASS lcl_repo_srv DEFINITION FINAL CREATE PRIVATE FRIENDS lcl_app.
METHODS add
IMPORTING io_repo TYPE REF TO lcl_repo
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS validate_package
IMPORTING iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_repo_srv DEFINITION
diff --git a/src/zabapgit_repo_browser_util.prog.abap b/src/zabapgit_repo_browser_util.prog.abap
index eb0fbab85..ca44a4b14 100644
--- a/src/zabapgit_repo_browser_util.prog.abap
+++ b/src/zabapgit_repo_browser_util.prog.abap
@@ -35,7 +35,7 @@ CLASS lcl_repo_content_list DEFINITION FINAL.
iv_by_folders TYPE abap_bool
iv_changes_only TYPE abap_bool
RETURNING VALUE(rt_repo_items) TYPE tt_repo_items
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS get_log
RETURNING VALUE(ro_log) TYPE REF TO lcl_log.
@@ -46,16 +46,16 @@ CLASS lcl_repo_content_list DEFINITION FINAL.
METHODS build_repo_items_offline
RETURNING VALUE(rt_repo_items) TYPE tt_repo_items
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS build_repo_items_online
RETURNING VALUE(rt_repo_items) TYPE tt_repo_items
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS build_folders
IMPORTING iv_cur_dir TYPE string
CHANGING ct_repo_items TYPE tt_repo_items
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS filter_changes
CHANGING ct_repo_items TYPE tt_repo_items.
diff --git a/src/zabapgit_repo_impl.prog.abap b/src/zabapgit_repo_impl.prog.abap
index 6242729e9..9c2ed9abc 100644
--- a/src/zabapgit_repo_impl.prog.abap
+++ b/src/zabapgit_repo_impl.prog.abap
@@ -51,7 +51,7 @@ CLASS lcl_repo_online IMPLEMENTATION.
METHOD deserialize.
IF ms_data-write_protect = abap_true.
- lcx_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ).
+ zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ).
ENDIF.
initialize( ).
@@ -72,7 +72,7 @@ CLASS lcl_repo_online IMPLEMENTATION.
METHOD refresh.
- DATA: lx_exception TYPE REF TO lcx_exception.
+ DATA: lx_exception TYPE REF TO zcx_abapgit_exception.
super->refresh( iv_drop_cache ).
reset_status( ).
@@ -89,7 +89,7 @@ CLASS lcl_repo_online IMPLEMENTATION.
et_objects = mt_objects
ev_branch = mv_branch ).
- CATCH lcx_exception INTO lx_exception.
+ CATCH zcx_abapgit_exception INTO lx_exception.
delete_initial_online_repo( abap_true ).
@@ -154,7 +154,7 @@ CLASS lcl_repo_online IMPLEMENTATION.
METHOD set_url.
IF ms_data-write_protect = abap_true.
- lcx_exception=>raise( 'Cannot change URL. Local code is write-protected by repo config' ).
+ zcx_abapgit_exception=>raise( 'Cannot change URL. Local code is write-protected by repo config' ).
ENDIF.
mv_initialized = abap_false.
@@ -165,7 +165,7 @@ CLASS lcl_repo_online IMPLEMENTATION.
METHOD set_branch_name.
IF ms_data-write_protect = abap_true.
- lcx_exception=>raise( 'Cannot switch branch. Local code is write-protected by repo config' ).
+ zcx_abapgit_exception=>raise( 'Cannot switch branch. Local code is write-protected by repo config' ).
ENDIF.
mv_initialized = abap_false.
@@ -176,7 +176,7 @@ CLASS lcl_repo_online IMPLEMENTATION.
METHOD set_new_remote.
IF ms_data-write_protect = abap_true.
- lcx_exception=>raise( 'Cannot change remote. Local code is write-protected by repo config' ).
+ zcx_abapgit_exception=>raise( 'Cannot change remote. Local code is write-protected by repo config' ).
ENDIF.
mv_initialized = abap_false.
@@ -344,7 +344,7 @@ CLASS lcl_repo_online IMPLEMENTATION.
lt_local TYPE lif_defs=>ty_files_item_tt,
lt_remote TYPE lif_defs=>ty_files_tt,
lt_status TYPE lif_defs=>ty_results_tt,
- lt_package TYPE lcl_persistence_repo=>ty_repo-package.
+ lv_package TYPE lcl_persistence_repo=>ty_repo-package.
FIELD-SYMBOLS: TYPE lif_defs=>ty_result,
TYPE lif_defs=>ty_tadir.
@@ -354,8 +354,9 @@ CLASS lcl_repo_online IMPLEMENTATION.
lt_remote = me->get_files_remote( ).
lt_status = me->status( ).
- lt_package = me->get_package( ).
- lt_tadir = lcl_tadir=>read( lt_package ).
+ lv_package = me->get_package( ).
+ lt_tadir = lcl_tadir=>read( lv_package ).
+ SORT lt_tadir BY pgmid ASCENDING object ASCENDING obj_name ASCENDING devclass ASCENDING.
LOOP AT lt_status ASSIGNING
WHERE lstate = lif_defs=>gc_state-added.
@@ -566,7 +567,7 @@ CLASS lcl_repo IMPLEMENTATION.
IF get_dot_abapgit( )->get_master_language( ) <> sy-langu.
- lcx_exception=>raise( 'Current login language does not match master language' ).
+ zcx_abapgit_exception=>raise( 'Current login language does not match master language' ).
ENDIF.
lo_dot_abapgit = find_remote_dot_abapgit( ).
@@ -844,7 +845,7 @@ CLASS lcl_repo_srv IMPLEMENTATION.
ENDIF.
ENDLOOP.
- lcx_exception=>raise( 'repo not found, get' ).
+ zcx_abapgit_exception=>raise( 'repo not found, get' ).
ENDMETHOD. "get
@@ -895,7 +896,7 @@ CLASS lcl_repo_srv IMPLEMENTATION.
TRY.
ls_repo = mo_persistence->read( lv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'new_online not found' ).
+ zcx_abapgit_exception=>raise( 'new_online not found' ).
ENDTRY.
CREATE OBJECT ro_repo
@@ -924,7 +925,7 @@ CLASS lcl_repo_srv IMPLEMENTATION.
TRY.
ls_repo = mo_persistence->read( lv_key ).
CATCH lcx_not_found.
- lcx_exception=>raise( 'new_offline not found' ).
+ zcx_abapgit_exception=>raise( 'new_offline not found' ).
ENDTRY.
CREATE OBJECT ro_repo
@@ -945,7 +946,7 @@ CLASS lcl_repo_srv IMPLEMENTATION.
IF lo_repo = io_repo.
RETURN.
ENDIF.
- lcx_exception=>raise( 'identical keys' ).
+ zcx_abapgit_exception=>raise( 'identical keys' ).
ENDIF.
ENDLOOP.
@@ -960,11 +961,11 @@ CLASS lcl_repo_srv IMPLEMENTATION.
IF iv_package IS INITIAL.
- lcx_exception=>raise( 'add, package empty' ).
+ zcx_abapgit_exception=>raise( 'add, package empty' ).
ENDIF.
IF iv_package = '$TMP'.
- lcx_exception=>raise( 'not possible to use $TMP, create new (local) package' ).
+ zcx_abapgit_exception=>raise( 'not possible to use $TMP, create new (local) package' ).
ENDIF.
IF lcl_exit=>get_instance( )->allow_sap_objects( ) = abap_true.
@@ -976,14 +977,14 @@ CLASS lcl_repo_srv IMPLEMENTATION.
AND as4user <> 'SAP'. "#EC CI_GENBUFF
ENDIF.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'package not found or not allowed' ).
+ zcx_abapgit_exception=>raise( 'package not found or not allowed' ).
ENDIF.
" make sure its not already in use for a different repository
lt_repos = mo_persistence->list( ).
READ TABLE lt_repos WITH KEY package = iv_package TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
- lcx_exception=>raise( 'Package already in use' ).
+ zcx_abapgit_exception=>raise( 'Package already in use' ).
ENDIF.
ENDMETHOD. "validate_package
@@ -1021,7 +1022,7 @@ CLASS lcl_repo_srv IMPLEMENTATION.
IF iv_target_package IS NOT INITIAL AND iv_target_package <> lv_package.
lv_err = |Installation to package { lv_package } detected. |
&& |Cancelling installation|.
- lcx_exception=>raise( lv_err ).
+ zcx_abapgit_exception=>raise( lv_err ).
ENDIF.
rv_installed = abap_true.
diff --git a/src/zabapgit_requirements.prog.abap b/src/zabapgit_requirements.prog.abap
index 234410825..f70819d3c 100644
--- a/src/zabapgit_requirements.prog.abap
+++ b/src/zabapgit_requirements.prog.abap
@@ -28,21 +28,21 @@ CLASS lcl_requirement_helper DEFINITION FINAL.
"!
"! @parameter it_requirements | The requirements to check
"! @parameter iv_show_popup | Show popup with requirements
- "! @raising lcx_exception | Cancelled by user or internal error
+ "! @raising zcx_abapgit_exception | Cancelled by user or internal error
check_requirements IMPORTING it_requirements TYPE lcl_dot_abapgit=>ty_requirement_tt
iv_show_popup TYPE abap_bool DEFAULT abap_true
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
"! Get a table with information about each requirement
"! @parameter it_requirements | Requirements
"! @parameter rt_status | Result
- "! @raising lcx_exception | Internal error
+ "! @raising zcx_abapgit_exception | Internal error
get_requirement_met_status IMPORTING it_requirements TYPE lcl_dot_abapgit=>ty_requirement_tt
RETURNING value(rt_status) TYPE ty_requirement_status_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS:
show_requirement_popup IMPORTING it_requirements TYPE ty_requirement_status_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
version_greater_or_equal IMPORTING is_status TYPE ty_requirement_status
RETURNING value(rv_true) TYPE abap_bool.
ENDCLASS. "lcl_requirement_helper DEFINITION
@@ -74,7 +74,7 @@ CLASS lcl_requirement_helper IMPLEMENTATION.
IMPORTING
answer = lv_answer.
IF lv_answer <> '1'.
- lcx_exception=>raise( 'Cancelling because of unmet requirements.' ).
+ zcx_abapgit_exception=>raise( 'Cancelling because of unmet requirements.' ).
ENDIF.
ENDIF.
ENDMETHOD. "check_requirements
@@ -92,7 +92,7 @@ CLASS lcl_requirement_helper IMPLEMENTATION.
no_release_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Error from DELIVERY_GET_INSTALLED_COMPS { sy-subrc }| ) ##no_text.
+ zcx_abapgit_exception=>raise( |Error from DELIVERY_GET_INSTALLED_COMPS { sy-subrc }| ) ##no_text.
ENDIF.
LOOP AT it_requirements ASSIGNING .
@@ -212,10 +212,7 @@ CLASS lcl_requirement_helper IMPLEMENTATION.
lo_alv->display( ).
CATCH cx_salv_msg cx_salv_not_found cx_salv_data_error INTO lx_ex.
- RAISE EXCEPTION TYPE lcx_exception
- EXPORTING
- iv_text = lx_ex->get_text( )
- ix_previous = lx_ex.
+ zcx_abapgit_exception=>raise( lx_ex->get_text( ) ).
ENDTRY.
ENDMETHOD. "show_requirement_popup
ENDCLASS. "lcl_requirement_helper IMPLEMENTATION
diff --git a/src/zabapgit_sap_package.prog.abap b/src/zabapgit_sap_package.prog.abap
index 800195585..f55170040 100644
--- a/src/zabapgit_sap_package.prog.abap
+++ b/src/zabapgit_sap_package.prog.abap
@@ -15,7 +15,7 @@ INTERFACE lif_sap_package.
RETURNING VALUE(rv_parentcl) TYPE tdevc-parentcl,
create_child
IMPORTING iv_child TYPE devclass
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
exists
RETURNING VALUE(rv_bool) TYPE abap_bool.
@@ -41,10 +41,10 @@ CLASS lcl_sap_package DEFINITION FINAL CREATE PRIVATE
RETURNING VALUE(ri_package) TYPE REF TO lif_sap_package,
create
IMPORTING is_package TYPE scompkdtln
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
create_local
IMPORTING iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS:
constructor
@@ -124,7 +124,7 @@ CLASS lcl_sap_package IMPLEMENTATION.
no_access = 4
object_locked_and_modified = 5 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error reading parent package' ).
+ zcx_abapgit_exception=>raise( 'error reading parent package' ).
ENDIF.
ls_child-devclass = iv_child.
@@ -200,7 +200,7 @@ CLASS lcl_sap_package IMPLEMENTATION.
* error_in_cts_checks = 21
OTHERS = 18 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( |Package { is_package-devclass } could not be created| ).
+ zcx_abapgit_exception=>raise( |Package { is_package-devclass } could not be created| ).
ENDIF.
li_package->save(
@@ -217,7 +217,7 @@ CLASS lcl_sap_package IMPLEMENTATION.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO lv_err.
- lcx_exception=>raise( lv_err ).
+ zcx_abapgit_exception=>raise( lv_err ).
ENDIF.
li_package->set_changeable( abap_false ).
diff --git a/src/zabapgit_services_abapgit.prog.abap b/src/zabapgit_services_abapgit.prog.abap
index ab1dd4fd6..8f546dc39 100644
--- a/src/zabapgit_services_abapgit.prog.abap
+++ b/src/zabapgit_services_abapgit.prog.abap
@@ -19,16 +19,16 @@ CLASS lcl_services_abapgit DEFINITION FINAL.
VALUE 'https://github.com/larshp/abapGit-plugins.git'.
CLASS-METHODS open_abapgit_homepage
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS open_abapgit_wikipage
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS install_abapgit
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS install_abapgit_pi
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS is_installed
RETURNING VALUE(rv_installed) TYPE abap_bool.
@@ -43,7 +43,7 @@ CLASS lcl_services_abapgit DEFINITION FINAL.
iv_text TYPE c
iv_url TYPE string
iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_services_abapgit
@@ -55,7 +55,7 @@ CLASS lcl_services_abapgit IMPLEMENTATION.
EXPORTING document = c_abapgit_homepage
EXCEPTIONS OTHERS = 1 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Opening page in external browser failed.' ).
+ zcx_abapgit_exception=>raise( 'Opening page in external browser failed.' ).
ENDIF.
ENDMETHOD. "open_abapgit_homepage
@@ -66,7 +66,7 @@ CLASS lcl_services_abapgit IMPLEMENTATION.
EXPORTING document = c_abapgit_wikipage
EXCEPTIONS OTHERS = 1 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Opening page in external browser failed.' ).
+ zcx_abapgit_exception=>raise( 'Opening page in external browser failed.' ).
ENDIF.
ENDMETHOD. "open_abapgit_wikipage
@@ -159,7 +159,7 @@ CLASS lcl_services_abapgit IMPLEMENTATION.
TRY.
rv_installed = lcl_app=>repo_srv( )->is_repo_installed( c_abapgit_url ).
" TODO, alternative checks for presence in the system
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
" cannot be installed anyway in this case, e.g. no connection
rv_installed = abap_false.
ENDTRY.
@@ -171,7 +171,7 @@ CLASS lcl_services_abapgit IMPLEMENTATION.
TRY.
rv_installed = lcl_app=>repo_srv( )->is_repo_installed( c_plugins_url ).
" TODO, alternative checks for presence in the system
- CATCH lcx_exception.
+ CATCH zcx_abapgit_exception.
" cannot be installed anyway in this case, e.g. no connection
rv_installed = abap_false.
ENDTRY.
diff --git a/src/zabapgit_services_background.prog.abap b/src/zabapgit_services_background.prog.abap
index 40a38dc2e..4138a0c6d 100644
--- a/src/zabapgit_services_background.prog.abap
+++ b/src/zabapgit_services_background.prog.abap
@@ -8,7 +8,7 @@ CLASS lcl_services_bkg DEFINITION FINAL.
CLASS-METHODS update_task
IMPORTING is_bg_task TYPE lcl_persist_background=>ty_background
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_services_background
diff --git a/src/zabapgit_services_db.prog.abap b/src/zabapgit_services_db.prog.abap
index 380a48cb6..183bd0689 100644
--- a/src/zabapgit_services_db.prog.abap
+++ b/src/zabapgit_services_db.prog.abap
@@ -7,11 +7,11 @@ CLASS lcl_services_db DEFINITION FINAL.
CLASS-METHODS delete
IMPORTING is_key TYPE lcl_persistence_db=>ty_content
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS update
IMPORTING is_content TYPE lcl_persistence_db=>ty_content
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_services_db
diff --git a/src/zabapgit_services_git.prog.abap b/src/zabapgit_services_git.prog.abap
index a37c2f3db..f1f6b2d5d 100644
--- a/src/zabapgit_services_git.prog.abap
+++ b/src/zabapgit_services_git.prog.abap
@@ -17,29 +17,29 @@ CLASS lcl_services_git DEFINITION FINAL.
CLASS-METHODS pull
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS reset
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS create_branch
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS switch_branch
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS delete_branch
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS commit
IMPORTING io_repo TYPE REF TO lcl_repo_online
is_commit TYPE ty_commit_fields
io_stage TYPE REF TO lcl_stage
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
ENDCLASS. " lcl_services_git
@@ -54,7 +54,7 @@ CLASS lcl_services_git IMPLEMENTATION.
lo_repo ?= lcl_app=>repo_srv( )->get( iv_key ).
IF lo_repo->is_write_protected( ) = abap_true.
- lcx_exception=>raise( 'Cannot reset. Local code is write-protected by repo config' ).
+ zcx_abapgit_exception=>raise( 'Cannot reset. Local code is write-protected by repo config' ).
ENDIF.
lv_answer = lcl_popups=>popup_to_confirm(
@@ -133,7 +133,7 @@ CLASS lcl_services_git IMPLEMENTATION.
lo_repo ?= lcl_app=>repo_srv( )->get( iv_key ).
IF lo_repo->is_write_protected( ) = abap_true.
- lcx_exception=>raise( 'Cannot pull. Local code is write-protected by repo config' ).
+ zcx_abapgit_exception=>raise( 'Cannot pull. Local code is write-protected by repo config' ).
ENDIF.
lo_repo->refresh( ).
@@ -186,9 +186,9 @@ CLASS lcl_services_git IMPLEMENTATION.
ENDIF.
IF ls_branch-name = 'HEAD'.
- lcx_exception=>raise( 'Cannot delete HEAD' ).
+ zcx_abapgit_exception=>raise( 'Cannot delete HEAD' ).
ELSEIF ls_branch-name = lo_repo->get_branch_name( ).
- lcx_exception=>raise( 'Switch branch before deleting current' ).
+ zcx_abapgit_exception=>raise( 'Switch branch before deleting current' ).
ENDIF.
lcl_git_porcelain=>delete_branch(
@@ -211,13 +211,13 @@ CLASS lcl_services_git IMPLEMENTATION.
iv_email = is_commit-committer_email ).
IF is_commit-committer_name IS INITIAL.
- lcx_exception=>raise( 'Commit: Committer name empty' ).
+ zcx_abapgit_exception=>raise( 'Commit: Committer name empty' ).
ELSEIF is_commit-committer_email IS INITIAL.
- lcx_exception=>raise( 'Commit: Committer email empty' ).
+ zcx_abapgit_exception=>raise( 'Commit: Committer email empty' ).
ELSEIF is_commit-author_email IS NOT INITIAL AND is_commit-author_name IS INITIAL.
- lcx_exception=>raise( 'Commit: Author email empty' ). " Opposite should be OK ?
+ zcx_abapgit_exception=>raise( 'Commit: Author email empty' ). " Opposite should be OK ?
ELSEIF is_commit-comment IS INITIAL.
- lcx_exception=>raise( 'Commit: empty comment' ).
+ zcx_abapgit_exception=>raise( 'Commit: empty comment' ).
ENDIF.
ls_comment-committer-name = is_commit-committer_name.
diff --git a/src/zabapgit_services_repo.prog.abap b/src/zabapgit_services_repo.prog.abap
index 4f5b1234e..7b611b06c 100644
--- a/src/zabapgit_services_repo.prog.abap
+++ b/src/zabapgit_services_repo.prog.abap
@@ -6,50 +6,50 @@ CLASS lcl_services_repo DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS clone
IMPORTING iv_url TYPE string
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS refresh
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS remove
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS purge
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS new_offline
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS remote_attach
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS remote_detach
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS remote_change
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS refresh_local_checksums
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS toggle_favorite
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS open_se80
IMPORTING iv_package TYPE devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS transport_to_branch
IMPORTING iv_repository_key TYPE lcl_persistence_db=>ty_value
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
ENDCLASS. "lcl_services_repo
@@ -133,7 +133,7 @@ CLASS lcl_services_repo IMPLEMENTATION.
lo_repo = lcl_app=>repo_srv( )->get( iv_key ).
IF lo_repo->is_write_protected( ) = abap_true.
- lcx_exception=>raise( 'Cannot purge. Local code is write-protected by repo config' ).
+ zcx_abapgit_exception=>raise( 'Cannot purge. Local code is write-protected by repo config' ).
ENDIF.
lv_package = lo_repo->get_package( ).
@@ -331,7 +331,7 @@ CLASS lcl_services_repo IMPLEMENTATION.
lt_transport_headers = lcl_popups=>popup_to_select_transports( ).
lt_transport_objects = lcl_transport=>to_tadir( lt_transport_headers ).
IF lt_transport_objects IS INITIAL.
- lcx_exception=>raise( 'Canceled or List of objects is empty ' ).
+ zcx_abapgit_exception=>raise( 'Canceled or List of objects is empty ' ).
ENDIF.
ls_transport_to_branch = lcl_popups=>popup_to_create_transp_branch(
diff --git a/src/zabapgit_stage.prog.abap b/src/zabapgit_stage.prog.abap
index 04dbdda3a..19475a010 100644
--- a/src/zabapgit_stage.prog.abap
+++ b/src/zabapgit_stage.prog.abap
@@ -26,7 +26,7 @@ CLASS lcl_stage DEFINITION FINAL.
CLASS-METHODS method_description
IMPORTING iv_method TYPE ty_method
RETURNING VALUE(rv_description) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS:
constructor
@@ -41,21 +41,21 @@ CLASS lcl_stage DEFINITION FINAL.
IMPORTING iv_path TYPE lif_defs=>ty_file-path
iv_filename TYPE lif_defs=>ty_file-filename
iv_data TYPE xstring
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
reset
IMPORTING iv_path TYPE lif_defs=>ty_file-path
iv_filename TYPE lif_defs=>ty_file-filename
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
reset_all
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
rm
IMPORTING iv_path TYPE lif_defs=>ty_file-path
iv_filename TYPE lif_defs=>ty_file-filename
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
ignore
IMPORTING iv_path TYPE lif_defs=>ty_file-path
iv_filename TYPE lif_defs=>ty_file-filename
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
lookup
IMPORTING iv_path TYPE lif_defs=>ty_file-path
iv_filename TYPE lif_defs=>ty_file-filename
@@ -79,7 +79,7 @@ CLASS lcl_stage DEFINITION FINAL.
iv_filename TYPE lif_defs=>ty_file-filename
iv_method TYPE ty_method
iv_data TYPE xstring OPTIONAL
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_stage DEFINITION
@@ -155,7 +155,7 @@ CLASS lcl_stage IMPLEMENTATION.
WHEN c_method-ignore.
rv_description = 'ignore' ##NO_TEXT.
WHEN OTHERS.
- lcx_exception=>raise( 'unknown staging method type' ).
+ zcx_abapgit_exception=>raise( 'unknown staging method type' ).
ENDCASE.
ENDMETHOD. "method_description
diff --git a/src/zabapgit_stage_logic.prog.abap b/src/zabapgit_stage_logic.prog.abap
index 124bc04fb..be168da18 100644
--- a/src/zabapgit_stage_logic.prog.abap
+++ b/src/zabapgit_stage_logic.prog.abap
@@ -11,11 +11,11 @@ CLASS lcl_stage_logic DEFINITION FINAL.
get
IMPORTING io_repo TYPE REF TO lcl_repo_online
RETURNING VALUE(rs_files) TYPE lif_defs=>ty_stage_files
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
count
IMPORTING io_repo TYPE REF TO lcl_repo_online
RETURNING VALUE(rv_count) TYPE i
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS:
diff --git a/src/zabapgit_tadir.prog.abap b/src/zabapgit_tadir.prog.abap
index 4877431a3..8ae72cb09 100644
--- a/src/zabapgit_tadir.prog.abap
+++ b/src/zabapgit_tadir.prog.abap
@@ -35,35 +35,35 @@ CLASS lcl_tadir DEFINITION FINAL.
io_dot TYPE REF TO lcl_dot_abapgit OPTIONAL
io_log TYPE REF TO lcl_log OPTIONAL
RETURNING VALUE(rt_tadir) TYPE lif_defs=>ty_tadir_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read_single
IMPORTING iv_pgmid TYPE tadir-pgmid DEFAULT 'R3TR'
iv_object TYPE tadir-object
iv_obj_name TYPE tadir-obj_name
RETURNING VALUE(rs_tadir) TYPE tadir
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read_single_sicf
IMPORTING iv_pgmid TYPE tadir-pgmid DEFAULT 'R3TR'
iv_obj_name TYPE tadir-obj_name
RETURNING VALUE(rs_tadir) TYPE tadir
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_object_package
IMPORTING iv_pgmid TYPE tadir-pgmid DEFAULT 'R3TR'
iv_object TYPE tadir-object
iv_obj_name TYPE tadir-obj_name
RETURNING VALUE(rv_devclass) TYPE tadir-devclass
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS:
read_sicf_url
IMPORTING iv_obj_name TYPE tadir-obj_name
RETURNING VALUE(rv_hash) TYPE text25
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
check_exists
IMPORTING it_tadir TYPE lif_defs=>ty_tadir_tt
RETURNING VALUE(rt_tadir) TYPE lif_defs=>ty_tadir_tt
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
build
IMPORTING iv_package TYPE tadir-devclass
iv_top TYPE tadir-devclass
@@ -71,7 +71,7 @@ CLASS lcl_tadir DEFINITION FINAL.
iv_ignore_subpackages TYPE abap_bool DEFAULT abap_false
io_log TYPE REF TO lcl_log OPTIONAL
RETURNING VALUE(rt_tadir) TYPE lif_defs=>ty_tadir_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_tadir DEFINITION
diff --git a/src/zabapgit_transport.prog.abap b/src/zabapgit_transport.prog.abap
index b2e9badd2..855df2388 100644
--- a/src/zabapgit_transport.prog.abap
+++ b/src/zabapgit_transport.prog.abap
@@ -5,24 +5,24 @@ CLASS lcl_transport DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS:
- zip RAISING lcx_exception,
+ zip RAISING zcx_abapgit_exception,
to_tadir IMPORTING it_transport_headers TYPE trwbo_request_headers
RETURNING VALUE(rt_tadir) TYPE scts_tadir
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS:
read_requests
IMPORTING it_trkorr TYPE trwbo_request_headers
RETURNING VALUE(rt_requests) TYPE trwbo_requests
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
find_top_package
IMPORTING it_tadir TYPE scts_tadir
RETURNING VALUE(rv_package) TYPE devclass,
resolve
IMPORTING it_requests TYPE trwbo_requests
RETURNING VALUE(rt_tadir) TYPE scts_tadir
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -45,12 +45,12 @@ CLASS lcl_transport IMPLEMENTATION.
lt_requests = read_requests( lt_trkorr ).
lt_tadir = resolve( lt_requests ).
IF lines( lt_tadir ) = 0.
- lcx_exception=>raise( 'empty transport' ).
+ zcx_abapgit_exception=>raise( 'empty transport' ).
ENDIF.
lv_package = find_top_package( lt_tadir ).
IF lv_package IS INITIAL.
- lcx_exception=>raise( 'error finding super package' ).
+ zcx_abapgit_exception=>raise( 'error finding super package' ).
ENDIF.
ls_data-key = 'TZIP'.
@@ -123,7 +123,7 @@ CLASS lcl_transport IMPLEMENTATION.
invalid_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from TR_READ_REQUEST_WITH_TASKS' ).
+ zcx_abapgit_exception=>raise( 'error from TR_READ_REQUEST_WITH_TASKS' ).
ENDIF.
APPEND LINES OF lt_requests TO rt_requests.
@@ -154,7 +154,7 @@ CLASS lcl_transport IMPLEMENTATION.
no_mapping = 1
OTHERS = 2.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from GET_R3TR_OBJECT_FROM_LIMU_OBJ' ).
+ zcx_abapgit_exception=>raise( 'error from GET_R3TR_OBJECT_FROM_LIMU_OBJ' ).
ENDIF.
lv_obj_name = lv_trobj_name.
ELSE.
@@ -188,7 +188,7 @@ CLASS lcl_transport_objects DEFINITION.
is_stage_objects TYPE lif_defs=>ty_stage_files
it_object_statuses TYPE lif_defs=>ty_results_tt
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
PRIVATE SECTION.
DATA mt_transport_objects TYPE scts_tadir.
ENDCLASS.
@@ -212,7 +212,7 @@ CLASS lcl_transport_objects IMPLEMENTATION.
CASE ls_object_status-lstate.
WHEN lif_defs=>gc_state-added OR lif_defs=>gc_state-modified.
IF ls_transport_object-delflag = abap_true.
- lcx_exception=>raise( |Object { ls_transport_object-obj_name
+ zcx_abapgit_exception=>raise( |Object { ls_transport_object-obj_name
} should be added/modified, but has deletion flag in transport| ).
ENDIF.
@@ -222,7 +222,7 @@ CLASS lcl_transport_objects IMPLEMENTATION.
item-obj_type = ls_transport_object-object
file-filename = ls_object_status-filename.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Object { ls_transport_object-obj_name
+ zcx_abapgit_exception=>raise( |Object { ls_transport_object-obj_name
} not found in the local repository files| ).
ENDIF.
@@ -232,7 +232,7 @@ CLASS lcl_transport_objects IMPLEMENTATION.
iv_data = ls_local_file-file-data ).
WHEN lif_defs=>gc_state-deleted.
IF ls_transport_object-delflag = abap_false.
- lcx_exception=>raise( |Object { ls_transport_object-obj_name
+ zcx_abapgit_exception=>raise( |Object { ls_transport_object-obj_name
} should be removed, but has NO deletion flag in transport| ).
ENDIF.
io_stage->rm(
@@ -243,7 +243,7 @@ CLASS lcl_transport_objects IMPLEMENTATION.
ENDCASE.
ENDLOOP.
IF sy-subrc <> 0.
- lcx_exception=>raise( |Object { ls_transport_object-obj_name
+ zcx_abapgit_exception=>raise( |Object { ls_transport_object-obj_name
} not found in the local repository files| ).
ENDIF.
ENDLOOP.
@@ -258,7 +258,7 @@ CLASS lcl_transport_2_branch DEFINITION.
IMPORTING io_repository TYPE REF TO lcl_repo_online
is_transport_to_branch TYPE lif_defs=>ty_transport_to_branch
it_transport_objects TYPE scts_tadir
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
METHODS create_new_branch
@@ -266,7 +266,7 @@ CLASS lcl_transport_2_branch DEFINITION.
io_repository TYPE REF TO lcl_repo_online
iv_branch_name TYPE string
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
METHODS generate_commit_message
IMPORTING
is_transport_to_branch TYPE lif_defs=>ty_transport_to_branch
@@ -279,7 +279,7 @@ CLASS lcl_transport_2_branch DEFINITION.
is_stage_objects TYPE lif_defs=>ty_stage_files
it_object_statuses TYPE lif_defs=>ty_results_tt
RAISING
- lcx_exception.
+ zcx_abapgit_exception.
ENDCLASS.
CLASS lcl_transport_2_branch IMPLEMENTATION.
@@ -329,8 +329,8 @@ CLASS lcl_transport_2_branch IMPLEMENTATION.
iv_from = io_repository->get_sha1_local( ) ).
io_repository->set_branch_name( iv_branch_name ).
- CATCH lcx_exception.
- lcx_exception=>raise( 'Error when creating new branch').
+ CATCH zcx_abapgit_exception.
+ zcx_abapgit_exception=>raise( 'Error when creating new branch').
ENDTRY.
ENDMETHOD.
diff --git a/src/zabapgit_unit_test.prog.abap b/src/zabapgit_unit_test.prog.abap
index 7bb5a034d..0d87d1c82 100644
--- a/src/zabapgit_unit_test.prog.abap
+++ b/src/zabapgit_unit_test.prog.abap
@@ -49,7 +49,7 @@ END-OF-DEFINITION.
CLASS ltcl_convert DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
PRIVATE SECTION.
- METHODS convert_int FOR TESTING RAISING lcx_exception.
+ METHODS convert_int FOR TESTING RAISING zcx_abapgit_exception.
METHODS split_string FOR TESTING.
ENDCLASS. "ltcl_convert DEFINITION
@@ -148,7 +148,7 @@ CLASS ltcl_dangerous DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION LONG FI
METHODS:
run FOR TESTING
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CONSTANTS: c_package TYPE devclass VALUE '$ABAPGIT_UNIT_TEST'.
@@ -410,7 +410,7 @@ CLASS ltcl_dot_abapgit DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT
PRIVATE SECTION.
METHODS:
identity FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
ignore FOR TESTING.
ENDCLASS.
@@ -479,17 +479,17 @@ CLASS ltcl_git_porcelain DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHO
IMPORTING iv_path TYPE string
iv_name TYPE string,
single_file FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
two_files_same_path FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
root_empty FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
namespaces FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
more_sub FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
sub FOR TESTING
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
DATA: mt_expanded TYPE lcl_git_porcelain=>ty_expanded_tt,
mt_trees TYPE lcl_git_porcelain=>ty_trees_tt.
@@ -665,11 +665,11 @@ CLASS ltcl_xml DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
PUBLIC SECTION.
METHODS:
up FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
empty FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
down FOR TESTING
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
TYPES: BEGIN OF st_old,
foo TYPE i,
@@ -797,9 +797,9 @@ CLASS ltcl_url DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
PRIVATE SECTION.
METHODS:
- repo_host FOR TESTING RAISING lcx_exception,
- repo_name1 FOR TESTING RAISING lcx_exception,
- repo_name2 FOR TESTING RAISING lcx_exception,
+ repo_host FOR TESTING RAISING zcx_abapgit_exception,
+ repo_name1 FOR TESTING RAISING zcx_abapgit_exception,
+ repo_name2 FOR TESTING RAISING zcx_abapgit_exception,
repo_error FOR TESTING.
ENDCLASS. "ltcl_url DEFINITION
@@ -816,7 +816,7 @@ CLASS ltcl_url IMPLEMENTATION.
TRY.
lcl_url=>host( 'not a real url' ). "#EC NOTEXT
cl_abap_unit_assert=>fail( ).
- CATCH lcx_exception. "#EC NO_HANDLER
+ CATCH zcx_abapgit_exception. "#EC NO_HANDLER
ENDTRY.
ENDMETHOD. "repo_error
@@ -869,7 +869,7 @@ CLASS ltcl_object_types DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHOR
PRIVATE SECTION.
METHODS:
is_supported FOR TESTING,
- not_exist FOR TESTING RAISING lcx_exception.
+ not_exist FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS. "ltcl_object_types DEFINITION
@@ -940,11 +940,11 @@ CLASS ltcl_git_pack_decode_commit DEFINITION FOR TESTING
PUBLIC SECTION.
METHODS:
decode1 FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
decode2 FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
decode3 FOR TESTING
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
DATA: ms_raw TYPE lcl_git_pack=>ty_commit,
@@ -953,7 +953,7 @@ CLASS ltcl_git_pack_decode_commit DEFINITION FOR TESTING
METHODS:
setup,
decode
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
add
IMPORTING iv_string TYPE string.
@@ -1091,29 +1091,29 @@ CLASS ltcl_git_pack DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FI
METHODS:
tree FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
commit FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
commit_newline FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
pack_short FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
pack_long FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
pack_multiple FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
sort_tree1 FOR TESTING,
sort_tree2 FOR TESTING,
type_and_length01 FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
type_and_length02 FOR TESTING
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS:
object_blob
IMPORTING iv_data TYPE xstring
RETURNING VALUE(rs_object) TYPE lif_defs=>ty_object
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "test DEFINITION
@@ -1405,11 +1405,11 @@ CLASS ltcl_html DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
DATA: mo_html TYPE REF TO lcl_html.
METHODS:
- indent1 FOR TESTING RAISING lcx_exception,
- indent2 FOR TESTING RAISING lcx_exception,
- indent3 FOR TESTING RAISING lcx_exception,
- indent4 FOR TESTING RAISING lcx_exception,
- style1 FOR TESTING RAISING lcx_exception.
+ indent1 FOR TESTING RAISING zcx_abapgit_exception,
+ indent2 FOR TESTING RAISING zcx_abapgit_exception,
+ indent3 FOR TESTING RAISING zcx_abapgit_exception,
+ indent4 FOR TESTING RAISING zcx_abapgit_exception,
+ style1 FOR TESTING RAISING zcx_abapgit_exception.
METHODS:
setup.
@@ -1533,20 +1533,20 @@ CLASS ltcl_serialize DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT F
METHODS:
check
IMPORTING is_item TYPE lif_defs=>ty_item
- RAISING lcx_exception,
- serialize_tabl FOR TESTING RAISING lcx_exception,
- serialize_enqu FOR TESTING RAISING lcx_exception,
- serialize_shlp FOR TESTING RAISING lcx_exception,
- serialize_view FOR TESTING RAISING lcx_exception,
- serialize_auth FOR TESTING RAISING lcx_exception,
- serialize_clas FOR TESTING RAISING lcx_exception,
- serialize_doma FOR TESTING RAISING lcx_exception,
- serialize_dtel FOR TESTING RAISING lcx_exception,
- serialize_fugr FOR TESTING RAISING lcx_exception,
- serialize_msag FOR TESTING RAISING lcx_exception,
- serialize_prog FOR TESTING RAISING lcx_exception,
- serialize_tran FOR TESTING RAISING lcx_exception,
- serialize_ttyp FOR TESTING RAISING lcx_exception.
+ RAISING zcx_abapgit_exception,
+ serialize_tabl FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_enqu FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_shlp FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_view FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_auth FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_clas FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_doma FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_dtel FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_fugr FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_msag FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_prog FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_tran FOR TESTING RAISING zcx_abapgit_exception,
+ serialize_ttyp FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS. "ltcl_serialize DEFINITION
@@ -1736,9 +1736,9 @@ CLASS ltcl_login_manager DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHO
setup,
teardown,
encoding FOR TESTING
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
same_server FOR TESTING
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -2209,7 +2209,7 @@ CLASS ltcl_file_status DEFINITION FOR TESTING RISK LEVEL HARMLESS
PUBLIC SECTION.
METHODS calculate_status FOR TESTING
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "ltcl_file_status
@@ -2310,7 +2310,7 @@ CLASS ltcl_file_status2 DEFINITION FOR TESTING RISK LEVEL HARMLESS
INHERITING FROM cl_aunit_assert.
PUBLIC SECTION.
- METHODS check FOR TESTING RAISING lcx_exception.
+ METHODS check FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS. "ltcl_sap_package
diff --git a/src/zabapgit_unit_test_clas_intf.prog.abap b/src/zabapgit_unit_test_clas_intf.prog.abap
index 424cf4323..773ae3e02 100644
--- a/src/zabapgit_unit_test_clas_intf.prog.abap
+++ b/src/zabapgit_unit_test_clas_intf.prog.abap
@@ -225,13 +225,13 @@ CLASS ltc_oo_test DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT.
ms_item TYPE lif_defs=>ty_item.
METHODS: when_deserializing
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
then_should_deserialize_source,
given_the_descriptions
IMPORTING
it_descriptions TYPE lif_defs=>ty_seocompotx_tt
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
then_shuld_update_descriptions
IMPORTING
it_descriptions TYPE lif_defs=>ty_seocompotx_tt,
@@ -240,7 +240,7 @@ CLASS ltc_oo_test DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT.
IMPORTING
it_lines TYPE tlinetab
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
then_docu_should_be_created
IMPORTING
it_lines TYPE tlinetab,
@@ -326,7 +326,7 @@ INHERITING FROM ltc_oo_test.
setup,
given_a_class_properties
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
then_should_create_class,
then_it_should_generate_locals,
should_create_class FOR TESTING RAISING cx_static_check,
@@ -534,7 +534,7 @@ INHERITING FROM ltc_oo_test.
setup,
given_an_interface_properties
RAISING
- lcx_exception,
+ zcx_abapgit_exception,
then_should_create_interface,
create_interface FOR TESTING RAISING cx_static_check,
update_descriptions FOR TESTING RAISING cx_static_check,
diff --git a/src/zabapgit_unit_test_transport.prog.abap b/src/zabapgit_unit_test_transport.prog.abap
index 2947c5a36..4020fd61d 100644
--- a/src/zabapgit_unit_test_transport.prog.abap
+++ b/src/zabapgit_unit_test_transport.prog.abap
@@ -36,7 +36,7 @@ CLASS ltcl_transport_objects DEFINITION FOR TESTING.
iv_data TYPE string
RETURNING VALUE(rs_local_file) TYPE lif_defs=>ty_file_item,
when_staging
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
then_file_should_be_added
IMPORTING
is_local_file TYPE lif_defs=>ty_file_item,
@@ -335,13 +335,13 @@ CLASS ltcl_transport_objects IMPLEMENTATION.
ENDMETHOD.
METHOD then_it_should_raise_exception.
- DATA: lo_exception TYPE REF TO lcx_exception.
+ DATA: lo_exception TYPE REF TO zcx_abapgit_exception.
TRY.
when_staging( ).
cl_abap_unit_assert=>fail( 'Should have raised exception').
- CATCH lcx_exception INTO lo_exception.
+ CATCH zcx_abapgit_exception INTO lo_exception.
cl_abap_unit_assert=>assert_equals(
- act = lo_exception->mv_text
+ act = lo_exception->text
exp = with_text ).
ENDTRY.
ENDMETHOD.
diff --git a/src/zabapgit_util.prog.abap b/src/zabapgit_util.prog.abap
index cdd0ec32e..6b2a8859f 100644
--- a/src/zabapgit_util.prog.abap
+++ b/src/zabapgit_util.prog.abap
@@ -31,79 +31,6 @@ CLASS lcl_state IMPLEMENTATION.
ENDCLASS.
-*----------------------------------------------------------------------*
-* CLASS lcl_time DEFINITION
-*----------------------------------------------------------------------*
-*
-*----------------------------------------------------------------------*
-CLASS lcl_time DEFINITION FINAL.
-
- PUBLIC SECTION.
- TYPES: ty_unixtime TYPE c LENGTH 16.
-
- CLASS-METHODS get
- RETURNING VALUE(rv_time) TYPE ty_unixtime
- RAISING lcx_exception.
-
- PRIVATE SECTION.
- CONSTANTS: c_epoch TYPE datum VALUE '19700101'.
-
-ENDCLASS. "lcl_time DEFINITION
-
-*----------------------------------------------------------------------*
-* CLASS lcl_time IMPLEMENTATION
-*----------------------------------------------------------------------*
-*
-*----------------------------------------------------------------------*
-CLASS lcl_time IMPLEMENTATION.
-
- METHOD get.
-
- DATA: lv_i TYPE i,
- lv_tz TYPE tznzone,
- lv_utcdiff TYPE tznutcdiff,
- lv_utcsign TYPE tznutcsign.
-
-
- lv_i = sy-datum - c_epoch.
- lv_i = lv_i * 86400.
- lv_i = lv_i + sy-uzeit.
-
- CALL FUNCTION 'TZON_GET_OS_TIMEZONE'
- IMPORTING
- ef_timezone = lv_tz.
-
- CALL FUNCTION 'TZON_GET_OFFSET'
- EXPORTING
- if_timezone = lv_tz
- if_local_date = sy-datum
- if_local_time = sy-uzeit
- IMPORTING
- ef_utcdiff = lv_utcdiff
- ef_utcsign = lv_utcsign
- EXCEPTIONS
- conversion_error = 1
- OTHERS = 2.
- IF sy-subrc <> 0.
- lcx_exception=>raise( 'Timezone error' ).
- ENDIF.
-
- CASE lv_utcsign.
- WHEN '+'.
- lv_i = lv_i - lv_utcdiff.
- WHEN '-'.
- lv_i = lv_i + lv_utcdiff.
- ENDCASE.
-
- rv_time = lv_i.
- CONDENSE rv_time.
- rv_time+11 = lv_utcsign.
- rv_time+12 = lv_utcdiff.
-
- ENDMETHOD. "get
-
-ENDCLASS. "lcl_time IMPLEMENTATION
-
*----------------------------------------------------------------------*
* CLASS lcl_convert DEFINITION
*----------------------------------------------------------------------*
@@ -131,7 +58,7 @@ CLASS lcl_convert DEFINITION FINAL.
CLASS-METHODS xstring_to_int
IMPORTING iv_xstring TYPE xstring
RETURNING VALUE(rv_i) TYPE i
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS int_to_xstring4
IMPORTING iv_i TYPE i
@@ -282,12 +209,12 @@ CLASS lcl_hash DEFINITION FINAL.
IMPORTING iv_type TYPE lif_defs=>ty_type
iv_data TYPE xstring
RETURNING VALUE(rv_sha1) TYPE lif_defs=>ty_sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS sha1_raw
IMPORTING iv_data TYPE xstring
RETURNING VALUE(rv_sha1) TYPE lif_defs=>ty_sha1
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_hash DEFINITION
@@ -359,7 +286,7 @@ CLASS lcl_hash IMPLEMENTATION.
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Error while calculating SHA1' ).
+ zcx_abapgit_exception=>raise( 'Error while calculating SHA1' ).
ENDIF.
rv_sha1 = lv_hash.
@@ -527,17 +454,17 @@ CLASS lcl_url DEFINITION FINAL.
CLASS-METHODS host
IMPORTING iv_repo TYPE string
RETURNING VALUE(rv_host) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS name
IMPORTING iv_repo TYPE string
RETURNING VALUE(rv_name) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS path_name
IMPORTING iv_repo TYPE string
RETURNING VALUE(rv_path_name) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS regex
@@ -545,7 +472,7 @@ CLASS lcl_url DEFINITION FINAL.
EXPORTING ev_host TYPE string
ev_path TYPE string
ev_name TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_repo DEFINITION
@@ -580,7 +507,7 @@ CLASS lcl_url IMPLEMENTATION.
FIND REGEX '(.*://[^/]*)(.*/)([^\.]*)[\.git]?' IN iv_repo
SUBMATCHES ev_host ev_path ev_name.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Malformed URL' ).
+ zcx_abapgit_exception=>raise( 'Malformed URL' ).
ENDIF.
ENDMETHOD. "url
@@ -937,18 +864,18 @@ CLASS lcl_login_manager DEFINITION FINAL.
IMPORTING iv_uri TYPE string
ii_client TYPE REF TO if_http_client OPTIONAL
RETURNING VALUE(rv_authorization) TYPE string
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
save
IMPORTING iv_uri TYPE string
ii_client TYPE REF TO if_http_client
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
clear,
set
IMPORTING iv_uri TYPE string
iv_username TYPE string
iv_password TYPE string
RETURNING VALUE(rv_auth) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
TYPES: BEGIN OF ty_auth,
@@ -962,7 +889,7 @@ CLASS lcl_login_manager DEFINITION FINAL.
append
IMPORTING iv_uri TYPE string
iv_auth TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
diff --git a/src/zabapgit_view_repo.prog.abap b/src/zabapgit_view_repo.prog.abap
index c643522f5..b68a697da 100644
--- a/src/zabapgit_view_repo.prog.abap
+++ b/src/zabapgit_view_repo.prog.abap
@@ -17,7 +17,7 @@ CLASS lcl_gui_view_repo DEFINITION FINAL.
METHODS constructor
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
@@ -34,19 +34,19 @@ CLASS lcl_gui_view_repo DEFINITION FINAL.
IMPORTING iv_lstate TYPE char1
iv_rstate TYPE char1
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
build_head_menu
IMPORTING iv_lstate TYPE char1
iv_rstate TYPE char1
RETURNING VALUE(ro_toolbar) TYPE REF TO lcl_html_toolbar
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
build_grid_menu
RETURNING VALUE(ro_toolbar) TYPE REF TO lcl_html_toolbar
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
render_item
IMPORTING is_item TYPE lcl_repo_content_list=>ty_repo_item
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
render_item_files
IMPORTING is_item TYPE lcl_repo_content_list=>ty_repo_item
RETURNING VALUE(ro_html) TYPE REF TO lcl_html,
@@ -63,7 +63,7 @@ CLASS lcl_gui_view_repo DEFINITION FINAL.
RETURNING VALUE(rv_html) TYPE string,
render_parent_dir
RETURNING VALUE(ro_html) TYPE REF TO lcl_html
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS:
build_obj_jump_link
@@ -125,7 +125,7 @@ CLASS lcl_gui_view_repo IMPLEMENTATION.
DATA: lt_repo_items TYPE lcl_repo_content_list=>tt_repo_items,
lo_browser TYPE REF TO lcl_repo_content_list,
- lx_error TYPE REF TO lcx_exception,
+ lx_error TYPE REF TO zcx_abapgit_exception,
lv_lstate TYPE char1,
lv_rstate TYPE char1,
lv_max TYPE abap_bool,
@@ -208,7 +208,7 @@ CLASS lcl_gui_view_repo IMPLEMENTATION.
ro_html->add( '' ).
- CATCH lcx_exception INTO lx_error.
+ CATCH zcx_abapgit_exception INTO lx_error.
ro_html->add( render_head_line( iv_lstate = lv_lstate iv_rstate = lv_rstate ) ).
ro_html->add( lcl_gui_chunk_lib=>render_error( ix_error = lx_error ) ).
ENDTRY.
@@ -314,6 +314,8 @@ CLASS lcl_gui_view_repo IMPLEMENTATION.
lo_tb_advanced->add( iv_txt = 'Make on-line'
iv_act = |{ lif_defs=>gc_action-repo_remote_attach }?{ lv_key }| ).
ENDIF.
+ lo_tb_advanced->add( iv_txt = 'Syntax Check'
+ iv_act = |{ lif_defs=>gc_action-repo_syntax_check }?{ lv_key }| ).
lo_tb_advanced->add( iv_txt = 'Repo settings'
iv_act = |{ lif_defs=>gc_action-repo_settings }?{ lv_key }| ).
lo_tb_advanced->add( iv_txt = 'Update local checksums'
@@ -348,7 +350,7 @@ CLASS lcl_gui_view_repo IMPLEMENTATION.
iv_act = |{ lif_defs=>gc_action-go_diff }?key={ lv_key }|
iv_opt = lif_defs=>gc_html_opt-strong ).
ENDIF.
- CATCH lcx_exception ##NO_HANDLER.
+ CATCH zcx_abapgit_exception ##NO_HANDLER.
" authorization error or repository does not exist
" ignore error
ENDTRY.
diff --git a/src/zabapgit_xml.prog.abap b/src/zabapgit_xml.prog.abap
index a27760e94..b4f0530d8 100644
--- a/src/zabapgit_xml.prog.abap
+++ b/src/zabapgit_xml.prog.abap
@@ -30,15 +30,15 @@ CLASS lcl_xml DEFINITION ABSTRACT.
METHODS parse
IMPORTING iv_normalize TYPE abap_bool DEFAULT abap_true
iv_xml TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
PRIVATE SECTION.
METHODS error
IMPORTING ii_parser TYPE REF TO if_ixml_parser
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
METHODS display_xml_error
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_xml DEFINITION
@@ -105,7 +105,7 @@ CLASS lcl_xml IMPLEMENTATION.
txt2 = 'See http://larshp.github.io/abapGit/other-xml-mismatch.html'
txt3 = lv_version. "#EC NOTEXT
- lcx_exception=>raise( 'XML error' ).
+ zcx_abapgit_exception=>raise( 'XML error' ).
ENDMETHOD. "display_xml_error
@@ -160,7 +160,7 @@ CLASS lcl_xml IMPLEMENTATION.
ENDDO.
ENDIF.
- lcx_exception=>raise( 'Error while parsing XML' ).
+ zcx_abapgit_exception=>raise( 'Error while parsing XML' ).
ENDMETHOD. "error
ENDCLASS. "lcl_xml IMPLEMENTATION
@@ -177,7 +177,7 @@ CLASS lcl_xml_output DEFINITION FINAL INHERITING FROM lcl_xml CREATE PUBLIC.
add
IMPORTING iv_name TYPE clike
ig_data TYPE any
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
set_raw
IMPORTING ii_raw TYPE REF TO if_ixml_element,
add_xml
@@ -318,11 +318,11 @@ CLASS lcl_xml_input DEFINITION FINAL INHERITING FROM lcl_xml CREATE PUBLIC.
METHODS:
constructor
IMPORTING iv_xml TYPE clike
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
read
IMPORTING iv_name TYPE clike
CHANGING cg_data TYPE any
- RAISING lcx_exception,
+ RAISING zcx_abapgit_exception,
get_raw
RETURNING VALUE(ri_raw) TYPE REF TO if_ixml_document,
* todo, add read_xml to match add_xml in lcl_xml_output
@@ -387,7 +387,7 @@ CLASS lcl_xml_input IMPLEMENTATION.
SOURCE XML mi_xml_doc
RESULT (lt_rtab) ##no_text.
CATCH cx_transformation_error INTO lx_error.
- lcx_exception=>raise( lx_error->if_message~get_text( ) ).
+ zcx_abapgit_exception=>raise( lx_error->if_message~get_text( ) ).
ENDTRY.
ENDMETHOD. "read
@@ -406,7 +406,7 @@ CLASS lcl_xml_pretty DEFINITION FINAL.
iv_ignore_errors TYPE abap_bool DEFAULT abap_true
iv_unpretty TYPE abap_bool DEFAULT abap_false
RETURNING VALUE(rv_xml) TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS.
@@ -439,7 +439,7 @@ CLASS lcl_xml_pretty IMPLEMENTATION.
rv_xml = iv_xml.
RETURN.
ELSE.
- lcx_exception=>raise( 'error parsing xml' ).
+ zcx_abapgit_exception=>raise( 'error parsing xml' ).
ENDIF.
ENDIF.
li_istream->close( ).
diff --git a/src/zabapgit_zip.prog.abap b/src/zabapgit_zip.prog.abap
index d1e2fb9cb..d20d5b417 100644
--- a/src/zabapgit_zip.prog.abap
+++ b/src/zabapgit_zip.prog.abap
@@ -12,48 +12,48 @@ CLASS lcl_zip DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS import
IMPORTING iv_key TYPE lcl_persistence_db=>ty_value
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS export
IMPORTING io_repo TYPE REF TO lcl_repo
it_filter TYPE scts_tadir OPTIONAL
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS export_package
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
CLASS-METHODS export_object
- RAISING lcx_exception lcx_cancel.
+ RAISING zcx_abapgit_exception lcx_cancel.
PRIVATE SECTION.
CLASS-METHODS file_upload
RETURNING VALUE(rv_xstr) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS unzip_file
IMPORTING iv_xstr TYPE xstring
RETURNING VALUE(rt_files) TYPE lif_defs=>ty_files_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS normalize_path
CHANGING ct_files TYPE lif_defs=>ty_files_tt
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS filename
IMPORTING iv_str TYPE string
EXPORTING ev_path TYPE string
ev_filename TYPE string
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS file_download
IMPORTING iv_package TYPE devclass
iv_xstr TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
CLASS-METHODS encode_files
IMPORTING it_files TYPE lif_defs=>ty_files_item_tt
RETURNING VALUE(rv_xstr) TYPE xstring
- RAISING lcx_exception.
+ RAISING zcx_abapgit_exception.
ENDCLASS. "lcl_zip DEFINITION
@@ -95,10 +95,10 @@ CLASS lcl_zip IMPLEMENTATION.
not_supported_by_gui = 3
OTHERS = 4 ). "#EC NOTEXT
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from file_save_dialog' ).
+ zcx_abapgit_exception=>raise( 'error from file_save_dialog' ).
ENDIF.
IF lv_action = cl_gui_frontend_services=>action_cancel.
- lcx_exception=>raise( 'cancelled' ).
+ zcx_abapgit_exception=>raise( 'cancelled' ).
ENDIF.
lt_rawdata = cl_bcs_convert=>xstring_to_solix( iv_xstr ).
@@ -136,7 +136,7 @@ CLASS lcl_zip IMPLEMENTATION.
error_no_gui = 23
OTHERS = 24 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from gui_download' ).
+ zcx_abapgit_exception=>raise( 'error from gui_download' ).
ENDIF.
ENDMETHOD. "file_download
@@ -167,7 +167,7 @@ CLASS lcl_zip IMPLEMENTATION.
FIND REGEX '(.*/)(.*)' IN iv_str
SUBMATCHES ev_path ev_filename.
IF sy-subrc <> 0.
- lcx_exception=>raise( 'Malformed path' ).
+ zcx_abapgit_exception=>raise( 'Malformed path' ).
ENDIF.
IF ev_path <> '/'.
CONCATENATE '/' ev_path INTO ev_path.
@@ -206,10 +206,10 @@ CLASS lcl_zip IMPLEMENTATION.
not_supported_by_gui = 4
OTHERS = 5 ). "#EC NOTEXT
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from file_open_dialog' ).
+ zcx_abapgit_exception=>raise( 'error from file_open_dialog' ).
ENDIF.
IF lv_action = cl_gui_frontend_services=>action_cancel.
- lcx_exception=>raise( 'cancelled' ).
+ zcx_abapgit_exception=>raise( 'cancelled' ).
ENDIF.
READ TABLE lt_file_table INDEX 1 INTO ls_file_table.
@@ -245,7 +245,7 @@ CLASS lcl_zip IMPLEMENTATION.
error_no_gui = 18
OTHERS = 19 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from gui_upload' ).
+ zcx_abapgit_exception=>raise( 'error from gui_upload' ).
ENDIF.
CONCATENATE LINES OF lt_data INTO rv_xstr IN BYTE MODE.
@@ -313,7 +313,7 @@ CLASS lcl_zip IMPLEMENTATION.
zip_parse_error = 1
OTHERS = 2 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from zip' ).
+ zcx_abapgit_exception=>raise( 'error from zip' ).
ENDIF.
LOOP AT lo_zip->files ASSIGNING .
@@ -328,7 +328,7 @@ CLASS lcl_zip IMPLEMENTATION.
zip_decompression_error = 2
OTHERS = 3 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from zip get' ).
+ zcx_abapgit_exception=>raise( 'error from zip get' ).
ENDIF.
APPEND INITIAL LINE TO rt_files ASSIGNING .
@@ -492,7 +492,7 @@ CLASS lcl_zip IMPLEMENTATION.
error_no_gui = 23
OTHERS = 24 ).
IF sy-subrc <> 0.
- lcx_exception=>raise( 'error from gui_download' ).
+ zcx_abapgit_exception=>raise( 'error from gui_download' ).
ENDIF.
ENDLOOP.
diff --git a/src/zcx_abapgit_exception.clas.abap b/src/zcx_abapgit_exception.clas.abap
new file mode 100644
index 000000000..a6d3ea62a
--- /dev/null
+++ b/src/zcx_abapgit_exception.clas.abap
@@ -0,0 +1,46 @@
+class ZCX_ABAPGIT_EXCEPTION definition
+ public
+ inheriting from CX_STATIC_CHECK
+ create public .
+
+public section.
+
+ data TEXT type STRING .
+
+ methods CONSTRUCTOR
+ importing
+ !TEXTID like TEXTID optional
+ !PREVIOUS like PREVIOUS optional
+ !TEXT type STRING optional .
+ class-methods RAISE
+ importing
+ !IV_TEXT type CLIKE
+ raising
+ ZCX_ABAPGIT_EXCEPTION .
+protected section.
+private section.
+ENDCLASS.
+
+
+
+CLASS ZCX_ABAPGIT_EXCEPTION IMPLEMENTATION.
+
+
+ method CONSTRUCTOR.
+CALL METHOD SUPER->CONSTRUCTOR
+EXPORTING
+TEXTID = TEXTID
+PREVIOUS = PREVIOUS
+.
+me->TEXT = TEXT .
+ endmethod.
+
+
+ METHOD raise.
+
+ RAISE EXCEPTION TYPE zcx_abapgit_exception
+ EXPORTING
+ text = iv_text.
+
+ ENDMETHOD.
+ENDCLASS.
diff --git a/src/zcx_abapgit_exception.clas.xml b/src/zcx_abapgit_exception.clas.xml
new file mode 100644
index 000000000..8c579868b
--- /dev/null
+++ b/src/zcx_abapgit_exception.clas.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ ZCX_ABAPGIT_EXCEPTION
+ 1
+ E
+ Exception
+ 40
+ 2
+ 1
+ X
+ X
+ X
+
+
+
+ ZCX_ABAPGIT_EXCEPTION
+ CONSTRUCTOR
+ E
+ CONSTRUCTOR
+
+
+
+
+