FullName returns the full name (namespace:name) of the error.
()
| 67 | |
| 68 | // FullName returns the full name (namespace:name) of the error. |
| 69 | func (d *Definition) FullName() string { |
| 70 | if d == nil { |
| 71 | return "" |
| 72 | } |
| 73 | namespace := d.namespace |
| 74 | if namespace == "" { |
| 75 | namespace = "unknown" |
| 76 | } |
| 77 | name := d.name |
| 78 | if name == "" { |
| 79 | name = "unknown" |
| 80 | } |
| 81 | return fmt.Sprintf("%s:%s", namespace, name) |
| 82 | } |
| 83 | |
| 84 | // MessageFormat of the error. |
| 85 | func (d *Definition) MessageFormat() string { |