module Cachix.Client.Exception (CachixException (..)) where import Protolude data CachixException = UnsupportedNixVersion Text | UserEnvNotSet Text | MustBeRoot Text | NixOSInstructions Text | AmbiguousInput Text | NoSigningKey Text | NoInput Text | NoConfig Text | NetRcParseError Text | NarStreamingError ExitCode Text | NarHashMismatch Text | DeprecatedCommand Text | AccessDeniedBinaryCache Text | BinaryCacheNotFound Text deriving (Int -> CachixException -> ShowS [CachixException] -> ShowS CachixException -> String (Int -> CachixException -> ShowS) -> (CachixException -> String) -> ([CachixException] -> ShowS) -> Show CachixException forall a. (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a showList :: [CachixException] -> ShowS $cshowList :: [CachixException] -> ShowS show :: CachixException -> String $cshow :: CachixException -> String showsPrec :: Int -> CachixException -> ShowS $cshowsPrec :: Int -> CachixException -> ShowS Show, Typeable) instance Exception CachixException where displayException :: CachixException -> String displayException (UnsupportedNixVersion Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (UserEnvNotSet Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (MustBeRoot Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (NixOSInstructions Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (AmbiguousInput Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (NoInput Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (NoConfig Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (NoSigningKey Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (NetRcParseError Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (NarStreamingError ExitCode _ Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (NarHashMismatch Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (DeprecatedCommand Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (AccessDeniedBinaryCache Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s displayException (BinaryCacheNotFound Text s) = Text -> String forall a b. ConvertText a b => a -> b toS Text s