modify error with constructor or void return