# Задачи

1\.      Проучете възможностите на библиотеката Lombok и актуализирайте класа Task.java с приложимите анотации.

2\.      Редактирайте приложението, като добавите DTO за транспортиране на данните на задача – id, заглавие, описание, краен срок. Актуализирайте засегнатите класове и методи.

3\.      Създайте клас за изключение за ненамерен ресурс ResourceNotFoundException.java, който наследява RuntimeException. Предвидете GlobalExceptionHandler, който да описва отговора към клиента при възникване на това изключение.

4\.      Добавете валидация на следните полета на добавяна или актуализирана задача:

a.      Заглавието не трябва да е празно;

b.      Описанието трябва да е поне 10 символа;

c.      Крайният срок не трябва да бъде null.

В GlobalExceptionHandler осигурете подходящ отговор към клиента при некоректно подадени данни.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://programmingfundamental.gitbook.io/programmingwithjava/internet-tekhnologii-2023/laboratorno-uprazhnenie-8/zadachi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
