[Form] fixed DateTimeToTimestampTransformer to use the proper exception class

This commit is contained in:
Fabien Potencier 2011-04-28 08:07:15 +02:00
parent 0007702321
commit f865a79742
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class DateTimeToTimestampTransformer extends BaseDateTimeTransformer
return $dateTime;
} 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);
}
}
}