# catch

Continues an observable sequence that is terminated by an exception with the next observable sequence. There is an alias for this method `catchException` for browsers \<IE9

## Arguments

1. `second` *(`Observable`)*: A second observable sequence used to produce results when an error occurred in the first sequence.
2. `handler` *(`Function`)*: Exception handler function that returns an observable sequence given the error that occurred in the first sequence

## Returns

*(`Observable`)*: An observable sequence containing the first sequence's elements, followed by the elements of the handler sequence in case an exception occurred.

## Example

### Using a second observable

### Using a handler function


---

# 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://soufatn.gitbook.io/rxjs-book/summary/observable/observable_instance_methods/catch.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.
