EPAM Systems Interview Question

Write custom error which contains (error, errorType, date/time)