Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2014-2015 the original author or authors.
  *
  * 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 org.dbflute.exception;

The exception of when the fetching is over safety size.

Author(s):
jflute
public class FetchingOverSafetySizeException extends RuntimeException {

    
The serial version UID for object serialization. (Default)
    private static final long serialVersionUID = 1L;

    
The max size of safety result.
    protected int _safetyMaxResultSize;

    
The executed dangerous SQL as displaySql. (NullAllowed: might be set in catch statement so writable)
    protected String _dangerousDisplaySql;

    
Constructor.

Parameters:
msg The message of the exception. (NotNull)
safetyMaxResultSize The max size of safety result. (NotZero, ZotMinus)
    public FetchingOverSafetySizeException(String msgint safetyMaxResultSize) {
        super(msg);
        this. = safetyMaxResultSize;
    }

    
Constructor.

Parameters:
msg The message of the exception. (NotNull)
cause Throwable. (NullAllowed)
safetyMaxResultSize The max size of safety result. (NotZero, ZotMinus)
    public FetchingOverSafetySizeException(String msgThrowable causeint safetyMaxResultSize) {
        super(msgcause);
        this. = safetyMaxResultSize;
    }

    
Get the max size of safety result.

Returns:
The max size of safety result. (Basically returns a plus value)
    public int getSafetyMaxResultSize() {
        return ;
    }

    
Get the executed dangerous SQL as displaySql.

Returns:
The string for SQL. (NullAllowed)
    public String getDangerousDisplaySql() {
        return ;
    }

    
Get the executed dangerous SQL as displaySql.

Parameters:
dangerousDisplaySql The string for SQL. (NullAllowed)
    public void setDangerousDisplaySql(String dangerousDisplaySql) {
        this. = dangerousDisplaySql;
    }
New to GrepCode? Check out our FAQ X