Dashboard > GreenPepper Demo > ... > Bank > NoSuchAccountException.java
  GreenPepper Demo Log In View a printable version of the current page.  
  NoSuchAccountException.java
Added by admin, last edited by admin on Jan 07, 2009
Labels: 
(None)

NoSuchAccountException.java
package com.greenpepper.confluence.demo.bank;

public class NoSuchAccountException
    extends Exception
{

  private final String number;

  public NoSuchAccountException(String number)
  {
    this.number = number;
  }

  public String getNumber()
  {
    return number;
  }

  public String getMessage()
  {
    return "Account does not exist: " + number;
  }
}

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007) - Bug/feature request - Contact Administrators