All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.gleske.jervis.exceptions.PlatformBadValueInKeyException Maven / Gradle / Ivy

/*
   Copyright 2014-2019 Sam Gleske - https://github.com/samrocketman/jervis

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   */
package net.gleske.jervis.exceptions;

/**
  A type of {@link net.gleske.jervis.exceptions.PlatformValidationException} which is thrown when there is a bad value in a platforms file key.

  

Sample usage

To run this example, clone Jervis and execute ./gradlew console to bring up a Groovy Console with the classpath set up.

import net.gleske.jervis.exceptions.PlatformBadValueInKeyException
throw new PlatformBadValueInKeyException('defaults.platform')

*/ public class PlatformBadValueInKeyException extends PlatformValidationException { /** Throw an exception for a bad value in a key. @param message A simple message that will be prepended with 'Bad value in key: ' + message */ public PlatformBadValueInKeyException(String message) { super("Bad value in key: " + message); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy