https://github.com/codex-team/hawk.scala
Hawk catcher for Scala
https://github.com/codex-team/hawk.scala
Last synced: 4 months ago
JSON representation
Hawk catcher for Scala
- Host: GitHub
- URL: https://github.com/codex-team/hawk.scala
- Owner: codex-team
- Created: 2018-03-25T21:06:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-06T15:40:54.000Z (about 7 years ago)
- Last Synced: 2024-12-31T05:28:39.291Z (5 months ago)
- Language: Scala
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hawk.scala
Scala errors Catcher module for [Hawk.so](https://hawk.so)
## Usage
[Register](https://hawk.so/join) an account and get a project token.
### Install module
```bash
$ sbt build
```#### Download and require codex.hawk package
You can download this repository and import `codex.hawk.HawkCatcher` class in your project.
```scala
import codex.hawk.HawkCatcher
```### Init HawkCatcher
Create an instance with token to the entry point of your project.
```scala
val hawkCatcher = new HawkCatcher("")
```### Catch exception
You can catch exceptions by yourself without enabling handlers.
```scala
try {
throw new Exception("Major error")
} catch {
case e: Exception => new HawkCatcher("").catchException(e)
}
```## Links
Repository: https://github.com/codex-team/hawk.scala
Report a bug: https://github.com/codex-team/hawk.scala/issues
CodeX Team: https://ifmo.su