09763ef69f5558a30cf2cdbf9a9a91df8d74b1a0
[mdref/mdref-http] / http / Object / setErrorHandling.md
1 # http\Object http\Object::setErrorHandling(int $eh)
2
3 Set instance error handling.
4
5 ## Params:
6
7 * int $eh
8 The error handling this instance should enforce.
9
10 ## Returns:
11
12 * http/Object, self.
13
14 ## Throws:
15
16 * http\Exception
17 When http\Object::EH_THROW is in effect.
18
19 ## Warnings:
20
21 * E_RUNTIME, if $eh is an unknown error handling code.