cachix-0.3.5: src/Cachix/Client/Exception.hs
module Cachix.Client.Exception (CachixException (..)) where
import Protolude
data CachixException
= UnsupportedNixVersion Text
| UserEnvNotSet Text
| MustBeRoot Text
| NixOSInstructions Text
| AmbiguousInput Text
| NoInput Text
| NoConfig Text
| NetRcParseError Text
| NarStreamingError ExitCode Text
| DeprecatedCommand Text
| AccessDeniedBinaryCache Text
| BinaryCacheNotFound Text
deriving (Show, Typeable)
instance Exception CachixException where
displayException (NixOSInstructions txt) = toS txt
displayException e = show e