Added a block about error handling

Not sure if this is useful to anybody, but I think it should be mentionned.