bases/exceptions library