[Form] fixed DateTimeToTimestampTransformer to use the proper exception class
This commit is contained in:
parent
0007702321
commit
f865a79742
@ -71,7 +71,7 @@ class DateTimeToTimestampTransformer extends BaseDateTimeTransformer
|
|||||||
|
|
||||||
return $dateTime;
|
return $dateTime;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new \InvalidArgumentException('Expected a valid timestamp. ' . $e->getMessage(), 0, $e);
|
throw new TransformationFailedException('Expected a valid timestamp. ' . $e->getMessage(), 0, $e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user