Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
bxcodec committed Jul 11, 2017
2 parents 8967804 + e7c503b commit 92abce5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions models/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,7 @@ package models

import "reflect"

func getTypeData(i interface{}) string {

v := reflect.ValueOf(i)
v = reflect.Indirect(v)
return v.Type().String()
}

func isCustomeEror(err error) bool {

switch getTypeData(err) {
case "ErrorInternalServer":
return true
}
return false
}

type ErrorInternalServer struct {
Message string
Expand Down

0 comments on commit 92abce5

Please sign in to comment.