mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			450 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			450 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright (c) HashiCorp, Inc.
 | |
| // SPDX-License-Identifier: MPL-2.0
 | |
| 
 | |
| package errutil
 | |
| 
 | |
| // UserError represents an error generated due to invalid user input
 | |
| type UserError struct {
 | |
| 	Err string
 | |
| }
 | |
| 
 | |
| func (e UserError) Error() string {
 | |
| 	return e.Err
 | |
| }
 | |
| 
 | |
| // InternalError represents an error generated internally,
 | |
| // presumably not due to invalid user input
 | |
| type InternalError struct {
 | |
| 	Err string
 | |
| }
 | |
| 
 | |
| func (e InternalError) Error() string {
 | |
| 	return e.Err
 | |
| }
 | 
