diff --git a/src/pyrfc/_exception.pyi b/src/pyrfc/_exception.pyi new file mode 100644 index 0000000..d7ec4d4 --- /dev/null +++ b/src/pyrfc/_exception.pyi @@ -0,0 +1,29 @@ +from typing import Any, Optional + +class RFCError(Exception): ... + +class RFCLibError(RFCError): + code2txt: Any = ... + message: Any = ... + code: Any = ... + key: Any = ... + msg_class: Any = ... + msg_type: Any = ... + msg_number: Any = ... + msg_v1: Any = ... + msg_v2: Any = ... + msg_v3: Any = ... + msg_v4: Any = ... + def __init__(self, message: Optional[Any] = ..., code: Optional[Any] = ..., key: Optional[Any] = ..., msg_class: Optional[Any] = ..., msg_type: Optional[Any] = ..., msg_number: Optional[Any] = ..., msg_v1: Optional[Any] = ..., msg_v2: Optional[Any] = ..., msg_v3: Optional[Any] = ..., msg_v4: Optional[Any] = ...) -> None: ... + +class ABAPApplicationError(RFCLibError): ... +class ABAPRuntimeError(RFCLibError): ... + +class LogonError(RFCLibError): + def __init__(self, message: Optional[Any] = ..., code: int = ..., key: str = ..., msg_class: Optional[Any] = ..., msg_type: Optional[Any] = ..., msg_number: Optional[Any] = ..., msg_v1: Optional[Any] = ..., msg_v2: Optional[Any] = ..., msg_v3: Optional[Any] = ..., msg_v4: Optional[Any] = ...) -> None: ... + +class CommunicationError(RFCLibError): ... +class ExternalRuntimeError(RFCLibError): ... +class ExternalApplicationError(RFCLibError): ... +class ExternalAuthorizationError(RFCLibError): ... +class RFCTypeError(RFCLibError): ... diff --git a/src/pyrfc/pyrfc.pyi b/src/pyrfc/pyrfc.pyi new file mode 100644 index 0000000..3d22dc0 --- /dev/null +++ b/src/pyrfc/pyrfc.pyi @@ -0,0 +1,10 @@ + +from typing import Any, Optional, Dict +def get_nwrfclib_version(): tuple +def set_ini_file_directory(path_name: str): None + +class Connection(): + version: {major: int, minor: int, patchLevel: int} + def __init__(self, config: Optional[Dict] = {}, *params: Any) -> None: ... + +__VERSION__: str