Skip to content

Commit

Permalink
Merge pull request #15 from isopov/common-fmt
Browse files Browse the repository at this point in the history
gofmt common.go after adding comments
  • Loading branch information
PeterIvanov authored Jan 9, 2019
2 parents 7a3cdd2 + a6ab864 commit fdac6a0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@ var (
CommonErrors = NewNamespace("common")

// IllegalArgument is a type for invalid argument error
IllegalArgument = CommonErrors.NewType("illegal_argument")
IllegalArgument = CommonErrors.NewType("illegal_argument")
// IllegalState is a type for invalid state error
IllegalState = CommonErrors.NewType("illegal_state")
IllegalState = CommonErrors.NewType("illegal_state")
// IllegalFormat is a type for invalid format error
IllegalFormat = CommonErrors.NewType("illegal_format")
IllegalFormat = CommonErrors.NewType("illegal_format")
// InitializationFailed is a type for initialization error
InitializationFailed = CommonErrors.NewType("initialization_failed")
// DataUnavailable is a type for unavailable data error
DataUnavailable = CommonErrors.NewType("data_unavailable")
DataUnavailable = CommonErrors.NewType("data_unavailable")
// UnsupportedOperation is a type for unsupported operation error
UnsupportedOperation = CommonErrors.NewType("unsupported_operation")
// RejectedOperation is a type for rejected operation error
RejectedOperation = CommonErrors.NewType("rejected_operation")
RejectedOperation = CommonErrors.NewType("rejected_operation")
// Interrupted is a type for interruption error
Interrupted = CommonErrors.NewType("interrupted")
Interrupted = CommonErrors.NewType("interrupted")
// AssertionFailed is a type for assertion error
AssertionFailed = CommonErrors.NewType("assertion_failed")
AssertionFailed = CommonErrors.NewType("assertion_failed")
// InternalError is a type for internal error
InternalError = CommonErrors.NewType("internal_error")
InternalError = CommonErrors.NewType("internal_error")
// ExternalError is a type for external error
ExternalError = CommonErrors.NewType("external_error")
ExternalError = CommonErrors.NewType("external_error")
// ConcurrentUpdate is a type for concurrent update error
ConcurrentUpdate = CommonErrors.NewType("concurrent_update")
ConcurrentUpdate = CommonErrors.NewType("concurrent_update")
// TimeoutElapsed is a type for timeout error
TimeoutElapsed = CommonErrors.NewType("timeout", Timeout())
TimeoutElapsed = CommonErrors.NewType("timeout", Timeout())
// NotImplemented is an error type for lacking implementation
NotImplemented = UnsupportedOperation.NewSubtype("not_implemented")
NotImplemented = UnsupportedOperation.NewSubtype("not_implemented")
// UnsupportedVersion is a type for unsupported version error
UnsupportedVersion = UnsupportedOperation.NewSubtype("version")
UnsupportedVersion = UnsupportedOperation.NewSubtype("version")
)

0 comments on commit fdac6a0

Please sign in to comment.