Metadata-Version: 2.1
Name: raisetool
Version: 0.1.14
Summary: Rise class for formatting thrown exception messages.
Home-page: https://github.com/Szumak75/RaiseTool
License: MIT
Author: Jacek Kotlarski
Author-email: szumak@virthost.pl
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: attribtool (>=1.0.1,<2.0.0)
Project-URL: Repository, https://github.com/Szumak75/RaiseTool
Description-Content-Type: text/markdown

# RaiseTool

The project contains small class for formatting thrown exception messages.

The message can be formatted with information about the class, method, and line number where the exception was thrown.

## Usage examples

```
import inspect
from raisetool.formatter import Raise

class Example:

    def __init__(self):
        print("1: " + Raise.message("example message 1"))
        print("2: " + Raise.message("example message 2", self.__class__.__name__))
        print("3: " + Raise.message("example message 3", self.__class__.__name__, inspect.currentframe()))

obj = Example()
```
Output:
```
1: example message 1
2: Example: example messace 2
3: Example.__init__ [line:9]: example message 3
```

