tempo/error
Types
pub type DateOutOfBoundsError {
DateDayOutOfBounds(input: String)
DateMonthOutOfBounds(input: String)
DateYearOutOfBounds(input: String)
}
Constructors
-
DateDayOutOfBounds(input: String) -
DateMonthOutOfBounds(input: String) -
DateYearOutOfBounds(input: String)
pub type DateParseError {
DateInvalidFormat(input: String)
DateOutOfBounds(input: String, cause: DateOutOfBoundsError)
}
Constructors
-
DateInvalidFormat(input: String) -
DateOutOfBounds(input: String, cause: DateOutOfBoundsError)
pub type DateTimeOutOfBoundsError {
DateTimeDateOutOfBounds(
input: String,
cause: DateOutOfBoundsError,
)
DateTimeTimeOutOfBounds(
input: String,
cause: TimeOutOfBoundsError,
)
DateTimeOffsetOutOfBounds(input: String)
}
Constructors
-
DateTimeDateOutOfBounds( input: String, cause: DateOutOfBoundsError, ) -
DateTimeTimeOutOfBounds( input: String, cause: TimeOutOfBoundsError, ) -
DateTimeOffsetOutOfBounds(input: String)
pub type DateTimeParseError {
DateTimeInvalidFormat(input: String)
DateTimeDateParseError(input: String, cause: DateParseError)
DateTimeTimeParseError(input: String, cause: TimeParseError)
DateTimeOffsetParseError(
input: String,
cause: OffsetParseError,
)
}
Constructors
-
DateTimeInvalidFormat(input: String) -
DateTimeDateParseError(input: String, cause: DateParseError) -
DateTimeTimeParseError(input: String, cause: TimeParseError) -
DateTimeOffsetParseError(input: String, cause: OffsetParseError)
pub type NaiveDateTimeParseError {
NaiveDateTimeInvalidFormat(input: String)
NaiveDateTimeDateParseError(
input: String,
cause: DateParseError,
)
NaiveDateTimeTimeParseError(
input: String,
cause: TimeParseError,
)
}
Constructors
-
NaiveDateTimeInvalidFormat(input: String) -
NaiveDateTimeDateParseError(input: String, cause: DateParseError) -
NaiveDateTimeTimeParseError(input: String, cause: TimeParseError)
pub type OffsetParseError {
OffsetInvalidFormat(input: String)
OffsetOutOfBounds(input: String)
}
Constructors
-
OffsetInvalidFormat(input: String) -
OffsetOutOfBounds(input: String)
pub type TimeOutOfBoundsError {
TimeHourOutOfBounds(input: String)
TimeMinuteOutOfBounds(input: String)
TimeSecondOutOfBounds(input: String)
TimeMicroSecondOutOfBounds(input: String)
}
Constructors
-
TimeHourOutOfBounds(input: String) -
TimeMinuteOutOfBounds(input: String) -
TimeSecondOutOfBounds(input: String) -
TimeMicroSecondOutOfBounds(input: String)
pub type TimeParseError {
TimeInvalidFormat(input: String)
TimeOutOfBounds(input: String, cause: TimeOutOfBoundsError)
}
Constructors
-
TimeInvalidFormat(input: String) -
TimeOutOfBounds(input: String, cause: TimeOutOfBoundsError)