Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: ec404ebf96ef37660722e821db8abde283a7fc74 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                                                     
  

                       
                                                           


                                                                           
           



                                                                        

                                                                     

                                        
                  

   
                                                      
   
                                    



                                                       
                          



                                                                       
                                           

   
/*
 * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Eike Stepper - initial API and implementation
 */
package org.eclipse.emf.cdo.util;

import org.eclipse.emf.cdo.view.CDOView;

/**
 * An unchecked exception being thrown if <i><a href="http://wiki.eclipse.org/CDO_Legacy_Mode">legacy objects</a></i>
 * are to be accessed and the associated {@link CDOView view} is not in {@link CDOView#isLegacyModeEnabled() legacy
 * mode}.
 *
 * @author Eike Stepper
 * @since 3.0
 * @deprecated As of 4.2 the legacy mode is always enabled.
 * @noextend This interface is not intended to be extended by clients.
 * @noinstantiate This class is not intended to be instantiated by clients.
 */
@Deprecated
public class LegacyModeNotEnabledException extends IllegalStateException
{
  private static final long serialVersionUID = 1L;

  private static final String MESSAGE = "Legacy mode is not enabled";

  public LegacyModeNotEnabledException()
  {
    this(MESSAGE);
  }

  public LegacyModeNotEnabledException(String message)
  {
    super(MESSAGE + ": " + message);
  }

  public LegacyModeNotEnabledException(Throwable cause)
  {
    super(MESSAGE, cause);
  }

  public LegacyModeNotEnabledException(String message, Throwable cause)
  {
    super(MESSAGE + ": " + message, cause);
  }
}

Back to the top