001/* 002 * flattr4j - A Java library for Flattr 003 * 004 * Copyright (C) 2011 Richard "Shred" Körber 005 * http://flattr4j.shredzone.org 006 * 007 * This program is free software: you can redistribute it and/or modify 008 * it under the terms of the GNU General Public License / GNU Lesser 009 * General Public License as published by the Free Software Foundation, 010 * either version 3 of the License, or (at your option) any later version. 011 * 012 * Licensed under the Apache License, Version 2.0 (the "License"); 013 * you may not use this file except in compliance with the License. 014 * 015 * This program is distributed in the hope that it will be useful, 016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 018 */ 019package org.shredzone.flattr4j.exception; 020 021import org.shredzone.flattr4j.oauth.Scope; 022 023/** 024 * This exception is used when the operation is forbidden. There are several causes for 025 * this: 026 * <ul> 027 * <li>insufficient permissions, see {@link Scope}</li> 028 * <li>the operation is not allowed (e.g. flattering an own thing)</li> 029 * </ul> 030 * The message contains the reason for the exception. 031 * 032 * @author Richard "Shred" Körber 033 */ 034public class ForbiddenException extends FlattrServiceException { 035 private static final long serialVersionUID = 1279509373771421366L; 036 037 public ForbiddenException(String code, String msg) { 038 super(code, msg); 039 } 040 041}