[API] error  constructors with exception