You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
883 B
34 lines
883 B
3 years ago
|
/*
|
||
|
* Copyright (c) 2018 Jämes Ménétrey <james@menetrey.me>
|
||
|
*
|
||
|
* This file is part of the Keystone Java bindings which is released under MIT.
|
||
|
* See file LICENSE in the Java bindings folder for full license details.
|
||
|
*/
|
||
|
|
||
|
package keystone.exceptions;
|
||
|
|
||
|
import keystone.KeystoneError;
|
||
|
|
||
|
/**
|
||
|
* An exception that represents a failure while assembling code.
|
||
|
*/
|
||
|
public class AssembleFailedKeystoneException extends KeystoneException {
|
||
|
/**
|
||
|
* The assembly code that generates the error.
|
||
|
*/
|
||
|
private final String assembly;
|
||
|
|
||
|
public AssembleFailedKeystoneException(KeystoneError keystoneError, String assembly) {
|
||
|
super(keystoneError, "Error while assembling `" + assembly + "`");
|
||
|
|
||
|
this.assembly = assembly;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Gets the assembly code that generates the error.
|
||
|
*/
|
||
|
public String getAssembly() {
|
||
|
return assembly;
|
||
|
}
|
||
|
}
|