mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 04:36:49 +08:00
CLIF: Improve error messages (#4271)
Pass T100 messages to UI/log Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
4ba62614eb
commit
5ca21a837d
|
@ -113,7 +113,7 @@ CLASS zcl_abapgit_oo_base IMPLEMENTATION.
|
||||||
class_not_existing = 1
|
class_not_existing = 1
|
||||||
OTHERS = 2.
|
OTHERS = 2.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from CL_OO_SOURCE. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
TRY.
|
TRY.
|
||||||
|
@ -153,7 +153,7 @@ CLASS zcl_abapgit_oo_base IMPLEMENTATION.
|
||||||
ret_code = 1
|
ret_code = 1
|
||||||
OTHERS = 2.
|
OTHERS = 2.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from DOCU_UPD. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
METHOD create_report.
|
METHOD create_report.
|
||||||
|
@ -137,7 +137,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
||||||
internal_error_insert_report = 11
|
internal_error_insert_report = 11
|
||||||
OTHERS = 12.
|
OTHERS = 12.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from SEO_METHOD_GENERATE_INCLUDE. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
rv_program = cl_oo_classname_service=>get_method_include( ls_mtdkey ).
|
rv_program = cl_oo_classname_service=>get_method_include( ls_mtdkey ).
|
||||||
|
@ -177,7 +177,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
||||||
_internal_class_overflow = 19
|
_internal_class_overflow = 19
|
||||||
OTHERS = 20.
|
OTHERS = 20.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_GENERATE_CLASSPOOL. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
@ -305,7 +305,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
||||||
OTHERS = 3.
|
OTHERS = 3.
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error instantiating CL_OO_CLASS_SECTION_SOURCE. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
lo_update->set_dark_mode( abap_true ).
|
lo_update->set_dark_mode( abap_true ).
|
||||||
|
@ -438,7 +438,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
||||||
OTHERS = 7.
|
OTHERS = 7.
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_CREATE_COMPLETE. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
@ -467,7 +467,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
||||||
* this can happen when the SXCI object is deleted before the implementing CLAS
|
* this can happen when the SXCI object is deleted before the implementing CLAS
|
||||||
RETURN.
|
RETURN.
|
||||||
ELSEIF sy-subrc <> 0.
|
ELSEIF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_DELETE_COMPLETE. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
@ -615,7 +615,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
||||||
IF sy-subrc = 1.
|
IF sy-subrc = 1.
|
||||||
RETURN. " in case only inactive version exists
|
RETURN. " in case only inactive version exists
|
||||||
ELSEIF sy-subrc <> 0.
|
ELSEIF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from SEO_CLIF_GET. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CLASS ZCL_ABAPGIT_OO_INTERFACE IMPLEMENTATION.
|
CLASS zcl_abapgit_oo_interface IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
METHOD zif_abapgit_oo_object_fnc~create.
|
METHOD zif_abapgit_oo_object_fnc~create.
|
||||||
|
@ -61,7 +61,7 @@ CLASS ZCL_ABAPGIT_OO_INTERFACE IMPLEMENTATION.
|
||||||
OTHERS = 7.
|
OTHERS = 7.
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from SEO_INTERFACE_CREATE_COMPLETE. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ CLASS ZCL_ABAPGIT_OO_INTERFACE IMPLEMENTATION.
|
||||||
other = 5
|
other = 5
|
||||||
OTHERS = 6.
|
OTHERS = 6.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from SEO_INTERFACE_DELETE_COMPLETE. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ CLASS ZCL_ABAPGIT_OO_INTERFACE IMPLEMENTATION.
|
||||||
IF sy-subrc = 1.
|
IF sy-subrc = 1.
|
||||||
RETURN. " in case only inactive version exists
|
RETURN. " in case only inactive version exists
|
||||||
ELSEIF sy-subrc <> 0.
|
ELSEIF sy-subrc <> 0.
|
||||||
zcx_abapgit_exception=>raise( |Error from seo_clif_get. Subrc = { sy-subrc }| ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user