Yes, if you write this as @ypu mentioned, you don't have to manually throw `error.TestNAError` as you did here, the params class will take care of throwing an exception based on TestNAError.