strata

Contracts and implementations for layered exception handling mechanisms.

UNLICENSE License

Downloads
512
Stars
1

Bot releases are hidden (Show)

strata - v1.1 Latest Release

Published by dakujem 3 months ago

  • PHP 8.4 compatibility
  • exception constructor type hints
strata - v1.0

Published by dakujem 12 months ago

Enjoy.

Removed all deprecated stuff from RC.

strata - v1 release candidate #3

Published by dakujem 12 months ago

This reverts changes from 1.0.0-rc2. making it equivalent with 1.0.0-rc1 with improved readme file.
See #1 for info.

strata - v1 release candidate #2

Published by dakujem about 1 year ago

  • static replaces self as return type in implementations
    • improves static analysis and IDE experience
strata - v1 release candidate #1

Published by dakujem about 1 year ago

  • extended type of the key parameter of methods pin, pass and tag to align with PHP's native array key behaviour (previously ?string, now string|int|null)
    • this is a BC break for classes implementing the corresponding interfaces, but should have minimal or no impact on real usage
  • phased out HttpExceptionBaseTrait (will be removed before stable release) in favor of a couple of new traits dedicated to client/server exceptions (next bullet point)
  • added HttpClientContextStrata and HttpServerContextStrata for 4xx and 5xx errors, respectively
  • HTTP exceptions now feature DefaultErrorMessage constant each
  • full test coverage
strata - v1 beta

Published by dakujem about 1 year ago

beta release

  • added SupportsContextStrata compound interface for all the features
  • added ContextStrata trait that implements the interface
  • deprecated SupportContextAwareExceptions trait in favor of the new ContextStrata trait that does the same (keeping the old one for compatibility for now)
strata - v1 alpha

Published by dakujem about 1 year ago

alpha release

Package Rankings
Top 48.08% on Packagist.org
Badges
Extracted from project README
Test Suite Coverage Status