mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +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
|
||||
OTHERS = 2.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from CL_OO_SOURCE. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
|
||||
TRY.
|
||||
|
@ -153,7 +153,7 @@ CLASS zcl_abapgit_oo_base IMPLEMENTATION.
|
|||
ret_code = 1
|
||||
OTHERS = 2.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from DOCU_UPD. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
ENDMETHOD.
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ ENDCLASS.
|
|||
|
||||
|
||||
|
||||
CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
||||
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
|
||||
|
||||
|
||||
METHOD create_report.
|
||||
|
@ -137,7 +137,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
|||
internal_error_insert_report = 11
|
||||
OTHERS = 12.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from SEO_METHOD_GENERATE_INCLUDE. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
|
||||
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
|
||||
OTHERS = 20.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_GENERATE_CLASSPOOL. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
|
||||
ENDMETHOD.
|
||||
|
@ -305,7 +305,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
|||
OTHERS = 3.
|
||||
ENDTRY.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error instantiating CL_OO_CLASS_SECTION_SOURCE. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
|
||||
lo_update->set_dark_mode( abap_true ).
|
||||
|
@ -438,7 +438,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
|||
OTHERS = 7.
|
||||
ENDTRY.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_CREATE_COMPLETE. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
|
||||
ENDMETHOD.
|
||||
|
@ -467,7 +467,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
|||
* this can happen when the SXCI object is deleted before the implementing CLAS
|
||||
RETURN.
|
||||
ELSEIF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_DELETE_COMPLETE. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
ENDMETHOD.
|
||||
|
||||
|
@ -615,7 +615,7 @@ CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
|
|||
IF sy-subrc = 1.
|
||||
RETURN. " in case only inactive version exists
|
||||
ELSEIF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from SEO_CLIF_GET. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
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.
|
||||
|
@ -61,7 +61,7 @@ CLASS ZCL_ABAPGIT_OO_INTERFACE IMPLEMENTATION.
|
|||
OTHERS = 7.
|
||||
ENDTRY.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from SEO_INTERFACE_CREATE_COMPLETE. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
ENDMETHOD.
|
||||
|
||||
|
@ -78,7 +78,7 @@ CLASS ZCL_ABAPGIT_OO_INTERFACE IMPLEMENTATION.
|
|||
other = 5
|
||||
OTHERS = 6.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from SEO_INTERFACE_DELETE_COMPLETE. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
ENDMETHOD.
|
||||
|
||||
|
@ -105,7 +105,7 @@ CLASS ZCL_ABAPGIT_OO_INTERFACE IMPLEMENTATION.
|
|||
IF sy-subrc = 1.
|
||||
RETURN. " in case only inactive version exists
|
||||
ELSEIF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Error from seo_clif_get. Subrc = { sy-subrc }| ).
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
|
|
Loading…
Reference in New Issue
Block a user