Use Standard SQL Exception in Phoenix

Implement SQL exception enum, and modify one of the exception to use the enum and SQLState.