1try {
2
3 $this->buildXMLHeader();
4
5} catch (\Exception $e) {
6
7 return $e->getMessage();
8}
1public function isValid($value)
2{
3 try {
4 // Validate the value...
5 } catch (Throwable $e) {
6 report($e);
7
8 return false;
9 }
10}