Package com.elastisys.scale.cloudadapers.api

Examples of com.elastisys.scale.cloudadapers.api.CloudAdapterException


        checkNotNull(this.sender, "missing sender");
        checkNotNull(this.mailServer, "missing mailServer");
        validateSeverityFilter(getSeverityFilter());
        this.mailServer.validate();
      } catch (Exception e) {
        throw new CloudAdapterException(
            format("failed to validate alerts config: %s",
                e.getMessage()), e);
      }
    }
View Full Code Here


        SmtpServerSettings settings = new SmtpServerSettings(
            getSmtpHost(), getSmtpPort(), getAuthentication(),
            isUseSsl());
        settings.validate();
      } catch (Exception e) {
        throw new CloudAdapterException(format(
            "failed to validate mailServerSettings: %s",
            e.getMessage()), e);
      }
    }
View Full Code Here

      checkNotNull(this.awsSecretAccessKey, "missing awsSecretAccessKey");
      checkNotNull(this.region, "missing region");
    } catch (Exception e) {
      // no need to wrap further if already a config exception
      Throwables.propagateIfInstanceOf(e, CloudAdapterException.class);
      throw new CloudAdapterException(format(
          "failed to validate cloud client configuration: %s",
          e.getMessage()), e);
    }
  }
View Full Code Here

      checkNotNull(this.awsSecretAccessKey, "missing awsSecretAccessKey");
      checkNotNull(this.region, "missing region");
    } catch (Exception e) {
      // no need to wrap further if already a config exception
      Throwables.propagateIfInstanceOf(e, CloudAdapterException.class);
      throw new CloudAdapterException(format(
          "failed to validate cloud client configuration: %s",
          e.getMessage()), e);
    }
  }
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapers.api.CloudAdapterException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.