added basic error controller.

Signed-off-by: Luke.Xuan <aoser97@gmail.com>