Git Product home page Git Product logo

e's Introduction

e ๐Ÿž

e is a zero-dependency micro library for dealing with errors on JVM. It aims to unify error handling across different JVM applications by providing an error model, ways to encode/decode errors and ways to use errors throughout your codebase.

It consists of different modules for different needs. You can find details, instructions and documentation about each of them on their own pages.

Latest Version of e Java Version Scala Versions Kotlin Version
1.1.2 1.8 2.12, 2.13 1.3.41

Table of Contents

  1. Modules
  2. Installation
  3. Examples and Use Cases
  4. Development and Testing
  5. Documentation
  6. Dependencies
  7. Releases
  8. Contributing
  9. License

Modules

Name Platform Details Documentation
e-core Java Core module for sharing common code between modules Link
e-java Java Java implementation Link
e-scala Scala Scala implementation Link
e-kotlin Kotlin Kotlin implementation Link
e-circe Scala Extras for circe Link
e-play-json Scala Extras for play-json Link
e-zio Scala Extras for ZIO Link
e-gson Java Extras for gson Link

Installation

  • Replace [MODULE] with a module name and [SCALA_VERSION] with your project's Scala version (if applicable)
  • If you use SBT, add following to your build.sbt for each module you want to use
libraryDependencies ++= Seq(
  // Scala modules
  "dev.akif" %% "[MODULE]" % "1.1.2",

  // Java/Kotlin modules
  "dev.akif" % "[MODULE]" % "1.1.2"
)
  • If you use Maven, add following to your pom.xml for each module you want to use
<dependencies>
  <!-- Scala modules -->
  <dependency>
    <groupId>dev.akif</groupId>
    <artifactId>[MODULE]_[SCALA_VERSION]</artifactId>
    <version>1.1.2</version>
  </dependency>

  <!-- Java/Kotlin modules -->
  <dependency>
    <groupId>dev.akif</groupId>
    <artifactId>[MODULE]</artifactId>
    <version>1.1.2</version>
  </dependency>
</dependencies>
  • If you use Gradle, add following to your project's build.gradle for each module you want to use
dependencies {
  // Scala modules
  implementation('dev.akif:[MODULE]_[SCALA_VERSION]:1.1.2'),

  // Java/Kotlin modules
  implementation('dev.akif:[MODULE]:1.1.2')
}

Examples and Use Cases

There are some example projects using e and some documented use cases where e can be helpful. You can find them in examples folder.

Development and Testing

e is built with SBT. You can use clean, compile, test tasks for development and testing.

Documentation

Documentation is managed with mdoc, check out docs folder for editing.

Dependencies

Versions of Scala, SBT, plugins and external dependencies are kept up-to-date by scala-steward.

Releases

e packages are published to Maven Central and they are versioned according to semantic versioning. Release process is managed by sbt-release.

Contributing

All contributions are welcome, including requests to feature your project utilizing e. Please feel free to send a pull request. Thank you.

License

e is licensed with MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.