mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
Add license headers and other cleanup
This commit is contained in:
@@ -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