Some error interfaces

Basic interfaces to get some known errors handling.