22 lines
317 B
V
22 lines
317 B
V
module vdocker
|
|
|
|
struct DockerError {
|
|
status int [skip]
|
|
message string
|
|
}
|
|
|
|
fn (err DockerError) code() int {
|
|
return err.status
|
|
}
|
|
|
|
fn (err DockerError) msg() string {
|
|
return err.message
|
|
}
|
|
|
|
fn docker_error(status int, message string) IError {
|
|
return IError(DockerError{
|
|
status: status
|
|
message: message
|
|
})
|
|
}
|