//# 0 errors, 23 messages
//#
/*
    //#validationerror.java:1:1: class: net.sourceforge.pebble.web.validation.ValidationError
    //#validationerror.java:1:1: method: net.sourceforge.pebble.web.validation.ValidationError.net.sourceforge.pebble.web.validation.ValidationError__static_init
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.web.validation;

/**
 * Represents a error that is raised during validation.
 *
 * @author    Simon Brown
 */
public class ValidationError {

  /** the message associated with this error */
  private String message;

  /**
   * Creates a new instance with the given message.
   *
   * @param message   the message as a String
   */
  public ValidationError(String message) {
    //#validationerror.java:49: method: void net.sourceforge.pebble.web.validation.ValidationError.net.sourceforge.pebble.web.validation.ValidationError(String)
    //#input(void net.sourceforge.pebble.web.validation.ValidationError(String)): message
    //#input(void net.sourceforge.pebble.web.validation.ValidationError(String)): this
    //#output(void net.sourceforge.pebble.web.validation.ValidationError(String)): this.message
    //#post(void net.sourceforge.pebble.web.validation.ValidationError(String)): this.message == message
    //#post(void net.sourceforge.pebble.web.validation.ValidationError(String)): init'ed(this.message)
    this.message = message;
  }
    //#validationerror.java:51: end of method: void net.sourceforge.pebble.web.validation.ValidationError.net.sourceforge.pebble.web.validation.ValidationError(String)

  /**
   * Gets the message associated with this error.
   *
   * @return  the message as a String
   */
  public String getMessage() {
    return this.message;
    //#validationerror.java:59: method: String net.sourceforge.pebble.web.validation.ValidationError.getMessage()
    //#input(String getMessage()): this
    //#input(String getMessage()): this.message
    //#output(String getMessage()): return_value
    //#pre[2] (String getMessage()): init'ed(this.message)
    //#post(String getMessage()): return_value == this.message
    //#post(String getMessage()): init'ed(return_value)
    //#validationerror.java:59: end of method: String net.sourceforge.pebble.web.validation.ValidationError.getMessage()
  }

}    //#output(net.sourceforge.pebble.web.validation.ValidationError__static_init): __Descendant_Table[net/sourceforge/pebble/web/validation/ValidationError]
    //#output(net.sourceforge.pebble.web.validation.ValidationError__static_init): __Dispatch_Table.getMessage()Ljava/lang/String;
    //#post(net.sourceforge.pebble.web.validation.ValidationError__static_init): __Descendant_Table[net/sourceforge/pebble/web/validation/ValidationError] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.validation.ValidationError__static_init): __Dispatch_Table.getMessage()Ljava/lang/String; == &getMessage
    //#validationerror.java:: end of method: net.sourceforge.pebble.web.validation.ValidationError.net.sourceforge.pebble.web.validation.ValidationError__static_init
    //#validationerror.java:: end of class: net.sourceforge.pebble.web.validation.ValidationError
