DurationException constructor

DurationException(
  1. String message,
  2. ErrorCodes code
)

Constructor for exception

Implementation

DurationException(
  this.message,
  this.code,
);