message: Add ValidationErr to CosmWasm
diff: @@ -3,6 +3,24 @@ use snafu::Snafu;
  #[derive(Debug, Snafu)]
  #[snafu(visibility = "pub")]
  pub enum Error {
  + #[snafu(display("Contract error: {}", msg))]
  + ContractErr {
  + msg: &'static str,
  + #[cfg(feature = "backtraces")]
  + backtrace: snafu::Backtrace,
  + },
  + #[snafu(display("Contract error: {}", msg))]
  + DynContractErr {
  + msg: String,
  + #[cfg(feature = "backtraces")]
  + backtrace: snafu::Backtrace,
  + },
  + #[snafu(display("{} not found", kind))]
  + NotFound {
  + kind: &'static str,
  + #[cfg(feature = "backtraces")]
  + backtrace: snafu::Backtrace,
  + },
  #[snafu(display("Received null pointer, refuse to use"))]
  NullPointer {
  #[cfg(feature = "backtraces")]
  @@ -22,18 +40,6 @@ pub enum Error {
  #[cfg(feature = "backtraces")]
  backtrace: snafu::Backtrace,
  },
  - #[snafu(display("Contract error: {}", msg))]
  - ContractErr {
  - msg: &'static str,
  - #[cfg(feature = "backtraces")]
  - backtrace: snafu::Backtrace,
  - },
  - #[snafu(display("Contract error: {}", msg))]
  - DynContractErr {
  - msg: String,
  - #[cfg(feature = "backtraces")]
  - backtrace: snafu::Backtrace,
  - },
  #[snafu(display("UTF8 encoding error: {}", source))]
  Utf8Err {
  source: std::str::Utf8Error,
  @@ -45,9 +51,10 @@ pub enum Error {
  #[cfg(feature = "backtraces")]
  backtrace: snafu::Backtrace,
  },
  - #[snafu(display("{} not found", kind))]
  - NotFound {
  - kind: &'static str,
  + #[snafu(display("Invalid {}: {}", kind, msg))]
  + ValidationErr {
  + field: &'static str,
  + msg: &'static str,
  #[cfg(feature = "backtraces")]
  backtrace: snafu::Backtrace,
  },
  