Fix import name
Add get_error and set_error