summaryrefslogtreecommitdiffstats
path: root/java/project/src/main/ch/asynk/MyClass.java
blob: 57ef46f64bae69731e893aa30911634e7e3f4679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package ch.asynk;

import lombok.Getter;

public class MyClass
{
    static private String msg = "Hello World";

    private @Getter int n;

    public MyClass()
    {
        n = 666;
    }

    public void print()
    {
        System.err.println(msg);
    }

    public void exception() throws MyException
    {
        throw new MyException("it's mine");
    }
}