~akiban-technologies/akiban-persistit/build

« back to all changes in this revision

Viewing changes to src/main/java/com/persistit/exception/KeyTooLongException.java

  • Committer: build-akiban
  • Date: 2013-03-20 20:09:26 UTC
  • mfrom: (424.1.3 fix_aioobe_key_append)
  • Revision ID: build@akiban.com-20130320200926-69pyu8wwm4qna9bb
merge pbeaman: Add a test to exercise various places where code in the Key#append methods attempts to write past the end of the encoded byte array.

https://code.launchpad.net/~pbeaman/akiban-persistit/fix-1157809-aioobe-on-append-key-segment/+merge/154422

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright © 2005-2012 Akiban Technologies, Inc.  All rights reserved.
 
3
 * 
 
4
 * This program and the accompanying materials are made available
 
5
 * under the terms of the Eclipse Public License v1.0 which
 
6
 * accompanies this distribution, and is available at
 
7
 * http://www.eclipse.org/legal/epl-v10.html
 
8
 * 
 
9
 * This program may also be available under different license terms.
 
10
 * For more information, see www.akiban.com or contact licensing@akiban.com.
 
11
 * 
 
12
 * Contributors:
 
13
 * Akiban Technologies, Inc.
 
14
 */
 
15
 
 
16
package com.persistit.exception;
 
17
 
 
18
/**
 
19
 * Thrown by {@link com.persistit.Key} when an attempt to append a key segment
 
20
 * exceeds the maximum size of the key.
 
21
 * 
 
22
 * @version 1.0
 
23
 */
 
24
public class KeyTooLongException extends RuntimeException {
 
25
 
 
26
    private static final long serialVersionUID = -4657691754665822537L;
 
27
 
 
28
    public KeyTooLongException() {
 
29
        super();
 
30
    }
 
31
 
 
32
    public KeyTooLongException(final String msg) {
 
33
        super(msg);
 
34
    }
 
35
 
 
36
    public KeyTooLongException(final Throwable t) {
 
37
        super(t);
 
38
    }
 
39
}