Skip to content

LLCFreedom-Space/fs-error-middleware

[![Swift Version][swift-image]][swift-url] [![License][license-image]][license-url] GitHub release (with filter) Read the Docs example workflow example workflow example workflow codecov

FS Error Middleware

Quick implementation of error middleware.

Swift version

The latest version of ErrorMiddleware requires Swift 5.8 and MacOS v13 or later. You can download this version of the Swift binaries by following this link.

Usage

Swift Package Manager

Add dependencies using the version

Add the ErrorMiddleware package to the dependencies within your application’s Package.swift file. Substitute "x.x.x" with the latest ErrorMiddleware release.

.package(url: "https://github.com/LLCFreedom-Space/fs-error-middleware.git", from: "x.x.x")

Add ErrorMiddleware to your target's dependencies:

.target(name: "ErrorMiddleware", dependencies: ["ErrorMiddleware"]),

Import package

import ErrorMiddleware

Add dependencies using the branch

Add the ErrorMiddleware package to the dependencies within your application’s Package.swift file. Substitute "name branch" with the latest ErrorMiddleware release.

.package(url: "https://github.com/LLCFreedom-Space/fs-error-middleware.git", branch: "name branch")

Add ErrorMiddleware to your target's dependencies:

.target(name: "ErrorMiddleware", dependencies: ["ErrorMiddleware"]),

Import package

import ErrorMiddleware

Getting Started

An example of a method call from this library

app.middleware.use(ErrorMiddleware.custom(environment: app.environment, for: "NumberId"))

To access the methods that are in this library, you need to call the application, since this library is an extension to the application

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages