package anomaly
- Since
11 Jun 2019
- Alphabetic
- By Inheritance
- anomaly
- AnomalyParamtersImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class Anomalies extends Exception with AnomaliesBase with Product with Serializable
- trait AnomaliesBase extends AnomalyBase with Product with Serializable
- Since
11 Jun 2019
- abstract class Anomaly extends Exception with AnomalyBase
You should express your business logic expected ways of failure using this trait.
- trait AnomalyBase extends Product with Serializable
- trait AnomalyID extends Product with Serializable with Equals
Some suggested naming conventions are put here so that they're easily accessible.
Some suggested naming conventions are put here so that they're easily accessible. These can also be found in the scaladoc of busymachines.pureharm.anomaly.MeaningfulAnomalies
- busymachines.pureharm.anomaly.MeaningfulAnomalies.NotFound
- range: 000-099; e.g. pone_001, ptwo_076, pthree_099
- busymachines.pureharm.anomaly.MeaningfulAnomalies.Unauthorized
- range: 100-199; e.g. pone_100, ptwo_176, pthree_199
- busymachines.pureharm.anomaly.MeaningfulAnomalies.Forbidden
- range: 200-299; e.g. pone_200, ptwo_276, pthree_299
- busymachines.pureharm.anomaly.MeaningfulAnomalies.Denied
- range: 300-399; e.g. pone_300, ptwo_376, pthree_399
- busymachines.pureharm.anomaly.MeaningfulAnomalies.InvalidInput
- range: 400-499; e.g. pone_400, ptwo_476, pthree_499
- trait AnomalyParamtersImplicits extends AnyRef
- Since
10 Jun 2019
- abstract class Catastrophe extends Error with CatastropheBase with Product with Serializable
java.lang.Error is a reasonable choice for a super-class.
java.lang.Error is a reasonable choice for a super-class. It's not caught by NonFatal(_)pattern matches. Which means that we can properly propagate "irrecoverable errors" one a per "request" basis and at the same time not crash our application into oblivion.
- trait CatastropheBase extends AnomalyBase with Product with Serializable
- abstract class ConflictAnomaly extends Anomaly with Conflict with Product with Serializable
- Since
11 Jun 2019
- abstract class DeniedAnomaly extends Anomaly with Denied with Product with Serializable
- Since
11 Jun 2019
- abstract class ForbiddenAnomaly extends Anomaly with Forbidden with Product with Serializable
- Since
11 Jun 2019
- abstract class InconsistentStateCatastrophe extends Catastrophe with Product with Serializable
- Since
10 Jun 2019
- abstract class InvalidInputAnomaly extends Anomaly with InvalidInput with Product with Serializable
- Since
11 Jun 2019
- abstract class NotFoundAnomaly extends Anomaly with NotFound with Product with Serializable
- Since
11 Jun 2019
- abstract class NotImplementedCatastrophe extends Catastrophe with Product with Serializable
- Since
10 Jun 2019
- trait PureharmAnomalyTypeDefinitions extends AnyRef
Mix this into your app's "core" package to get all these nice little anomalies.
Mix this into your app's "core" package to get all these nice little anomalies.
- Since
10 Jun 2019
- final case class SeqStringWrapper extends StringOrSeqString with Product with Serializable
- sealed trait StringOrSeqString extends Product with Serializable
This is a hack until dotty (scala 3.0) comes along with union types.
This is a hack until dotty (scala 3.0) comes along with union types. Until then, boiler plate freedom is given by the implicit conversions found in the package object
- final case class StringWrapper extends StringOrSeqString with Product with Serializable
- abstract class UnauthorizedAnomaly extends Anomaly with Unauthorized with Product with Serializable
- Since
11 Jun 2019
- abstract class UnhandledCatastrophe extends Catastrophe with Product with Serializable
- Since
14 Jul 2020
Value Members
- implicit final def anomalyParamValueSeqOfStringWrapper(ses: Seq[String]): Parameter
- Definition Classes
- AnomalyParamtersImplicits
- implicit final def anomalyParamValueStringWrapper(s: String): Parameter
- Definition Classes
- AnomalyParamtersImplicits
- object Anomalies extends Serializable
- object Anomaly extends AnomalyConstructors[Anomaly] with Serializable
- object AnomalyID extends Serializable
- object Catastrophe extends CatastropheConstructors[Catastrophe] with Serializable
- object ConflictAnomaly extends ConflictAnomaly with SingletonAnomalyProduct with AnomalyConstructors[ConflictAnomaly]
- object DeniedAnomaly extends DeniedAnomaly with SingletonAnomalyProduct with AnomalyConstructors[DeniedAnomaly]
- object ForbiddenAnomaly extends ForbiddenAnomaly with SingletonAnomalyProduct with AnomalyConstructors[ForbiddenAnomaly]
- object InconsistentStateCatastrophe extends CatastropheConstructors[InconsistentStateCatastrophe] with Serializable
- object InvalidInputAnomaly extends InvalidInputAnomaly with SingletonAnomalyProduct with AnomalyConstructors[InvalidInputAnomaly]
- object MeaningfulAnomalies
Some suggested naming conventions are put here so that they're easily accessible.
Some suggested naming conventions are put here so that they're easily accessible. These can also be found in the scaladoc of busymachines.pureharm.AnomalyID
- busymachines.pureharm.anomaly.MeaningfulAnomalies.NotFound
- range: 000-099; e.g. pone_001, ptwo_076, pthree_099
- busymachines.pureharm.anomaly.MeaningfulAnomalies.UnauthorizedMsg
- range: 100-199; e.g. pone_100, ptwo_176, pthree_199
- busymachines.pureharm.anomaly.MeaningfulAnomalies.ForbiddenMsg
- range: 200-299; e.g. pone_200, ptwo_276, pthree_299
- busymachines.pureharm.anomaly.MeaningfulAnomalies.DeniedMsg
- range: 300-399; e.g. pone_300, ptwo_376, pthree_399
- busymachines.pureharm.anomaly.MeaningfulAnomalies.InvalidInput
- range: 400-499; e.g. pone_400, ptwo_476, pthree_499
- Since
11 Jun 2019
- object NotFoundAnomaly extends NotFoundAnomaly with SingletonAnomalyProduct with AnomalyConstructors[NotFoundAnomaly]
- object NotImplementedCatastrophe extends CatastropheConstructors[NotImplementedCatastrophe] with Serializable
- object UnauthorizedAnomaly extends UnauthorizedAnomaly with SingletonAnomalyProduct with AnomalyConstructors[UnauthorizedAnomaly]
- object UnhandledCatastrophe extends Serializable