forked from free-lancers/electricity_bill_calc_service
		
	feat(withdraw):完成公示撤回及审核相关的功能。
This commit is contained in:
		
							
								
								
									
										19
									
								
								exceptions/improper_operate.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								exceptions/improper_operate.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| package exceptions | ||||
|  | ||||
| import "fmt" | ||||
|  | ||||
| type ImproperOperateError struct { | ||||
| 	Message   string | ||||
| 	Arguments []string | ||||
| } | ||||
|  | ||||
| func NewImproperOperateError(msg string, arguments ...string) ImproperOperateError { | ||||
| 	return ImproperOperateError{ | ||||
| 		Message:   msg, | ||||
| 		Arguments: arguments, | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func (e ImproperOperateError) Error() string { | ||||
| 	return fmt.Sprintf("Improper Operate, %s", e.Message) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user