mirror of
https://github.com/minio/minio.git
synced 2025-11-11 14:30:17 -05:00
Add license headers and other cleanup
This commit is contained in:
21
pkg/storage/storage_errors.go
Normal file
21
pkg/storage/storage_errors.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package storage
|
||||
|
||||
type GenericError struct {
|
||||
bucket string
|
||||
path string
|
||||
}
|
||||
|
||||
type ObjectExists struct {
|
||||
bucket string
|
||||
key string
|
||||
}
|
||||
|
||||
type ObjectNotFound GenericError
|
||||
|
||||
func (self ObjectNotFound) Error() string {
|
||||
return "Not Found: " + self.bucket + "#" + self.path
|
||||
}
|
||||
|
||||
func (self ObjectExists) Error() string {
|
||||
return "Object exists: " + self.bucket + "#" + self.key
|
||||
}
|
||||
Reference in New Issue
Block a user