Should the errors be made on declarative or imperative way?