[Core] Be pep257 compliant.
[Core] Add a raises error documentation.