Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2014 Attila Szegedi, Daniel Dekany, Jonathan Revusky
   * 
   * 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 freemarker.core;
 
For internal use only; don't depend on this, there's no backward compatibility guarantee at all! freemarker.template.TemplateException-s that don't fit into any category that warrant its own class. In fact, this was added because the API of freemarker.template.TemplateException is too simple for the purposes of the core, but it can't be extended without breaking backward compatibility and exposing internals.
 
 public class _MiscTemplateException extends TemplateException {
 
     // Note: On Java 5 we will use `String descPart1, Object... furtherDescParts` instead of `Object[] descriptionParts`
     //       and `String description`. That's why these are at the end of the parameter list.
     
     // -----------------------------------------------------------------------------------------------------------------
     // Permutation group:
     
     public _MiscTemplateException(String description) {
         super(descriptionnull);
     }
 
     public _MiscTemplateException(Environment envString description) {
         super(descriptionenv);
     }
     
     // -----------------------------------------------------------------------------------------------------------------
     // Permutation group:
 
     public _MiscTemplateException(Throwable causeString description) {
         this(causenulldescription);
     }
 
     public _MiscTemplateException(Throwable causeEnvironment env) {
         this(causeenv, (Stringnull);
     }
 
     public _MiscTemplateException(Throwable cause) {
         this(causenull, (Stringnull);
     }
     
     public _MiscTemplateException(Throwable causeEnvironment envString description) {
         super(descriptioncauseenv);
     }
 
     // -----------------------------------------------------------------------------------------------------------------
     // Permutation group:
     
     public _MiscTemplateException(_ErrorDescriptionBuilder description) {
         this(nulldescription);
     }
 
     public _MiscTemplateException(Environment env_ErrorDescriptionBuilder description) {
         this(nullenvdescription);
     }
 
     public _MiscTemplateException(Throwable causeEnvironment env_ErrorDescriptionBuilder description) {
         super(causeenvnulldescription);
     }
 
     // -----------------------------------------------------------------------------------------------------------------
     // Permutation group:
     
     public _MiscTemplateException(Object[] descriptionParts) {
         this((EnvironmentnulldescriptionParts);
     }
 
     public _MiscTemplateException(Environment envObject[] descriptionParts) {
         this((ThrowablenullenvdescriptionParts);
     }
 
     public _MiscTemplateException(Throwable causeObject[] descriptionParts) {
         this(causenulldescriptionParts);
     }
 
     public _MiscTemplateException(Throwable causeEnvironment envObject[] descriptionParts) {
         super(causeenvnullnew _ErrorDescriptionBuilder(descriptionParts));
     }
 
     // -----------------------------------------------------------------------------------------------------------------
     // Permutation group:
     
     public _MiscTemplateException(Expression blamedObject[] descriptionParts) {
        this(blamednulldescriptionParts);
    }
    public _MiscTemplateException(Expression blamedEnvironment envObject[] descriptionParts) {
        this(blamednullenvdescriptionParts);
    }
    public _MiscTemplateException(Expression blamedThrowable causeEnvironment envObject[] descriptionParts) {
        super(causeenvblamednew _ErrorDescriptionBuilder(descriptionParts).blame(blamed));
    }
    // -----------------------------------------------------------------------------------------------------------------
    // Permutation group:
    
    public _MiscTemplateException(Expression blamedString description) {
        this(blamednulldescription);
    }
    public _MiscTemplateException(Expression blamedEnvironment envString description) {
        this(blamednullenvdescription);
    }
    public _MiscTemplateException(Expression blamedThrowable causeEnvironment envString description) {
        super(causeenvblamednew _ErrorDescriptionBuilder(description).blame(blamed));
    }
    
New to GrepCode? Check out our FAQ X