---
title: "setFailureType(to:)"
framework: combine
role: symbol
role_heading: Instance Method
path: "combine/just/setfailuretype(to:)"
---

# setFailureType(to:)

## Declaration

```swift
func setFailureType<E>(to failureType: E.Type) -> Result<Output, E>.Publisher where E : Error
```

## See Also

### Mapping elements

- [map(_:)](combine/just/map(_:).md)
- [tryMap(_:)](combine/just/trymap(_:).md)
- [mapError(_:)](combine/just/maperror(_:).md)
- [scan(_:_:)](combine/just/scan(_:_:).md)
- [tryScan(_:_:)](combine/just/tryscan(_:_:).md)
