I have wished to create my own exception handling mechanism. For this reason, I am planning to use chain of responsibility pattern. But, since my background totaly comes from C++, I have a bit confused about how to throw own exception. What I want is throwing own exception like

```
public void foo() throws OwnExceptionAboutTechnicalError { // body } 

```

How can I predetermine exception like `OwnExceptionAboutTechnicalError` and use it like this

```
public void foo() throws OwnExceptionAboutTechnicalError { // body }

```