Casbin can return error instead of causing panic if it encounters any issues like parsing error.
The following five functions will return error instead of causing panic.
func NewEnforcerSafe(params ...interface{}) (e *Enforcer, err error) {}
func (e *Enforcer) EnforceSafe(rvals ...string) (result bool, err error) {}
func (e *Enforcer) LoadModelSafe() (err error) {}
func (e *Enforcer) LoadPolicySafe() (err error) {}
func (e *Enforcer) SavePolicySafe() (err error) {}
See details in: #19