Pergunta de entrevista da empresa Nokia

Implement a custom error class and raise it under a specific condition.