chore($apply): use minErr to throw exception