Skip to content

Commit

Permalink
Remove unused test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Aug 3, 2024
1 parent 4e74d2e commit 3a75733
Showing 1 changed file with 0 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package com.io7m.seltzer.tests;

import com.io7m.seltzer.api.SStructuredErrorExceptionType;
import com.io7m.seltzer.io.SIOException;
import net.jqwik.api.Arbitraries;
import net.jqwik.api.Arbitrary;
Expand All @@ -44,53 +43,6 @@ public Arbitrary<Throwable> throwables()
.map(IOException::new);
}

final class Ex extends Exception
implements SStructuredErrorExceptionType<String>
{
private final String errorCode;
private final Map<String, String> attributes;
private final Optional<String> remediatingAction;
private final Optional<Throwable> exception;

Ex(
final String errorCode,
final String message,
final Map<String, String> attributes,
final Optional<String> remediatingAction,
final Optional<Throwable> exception)
{
super(message);
this.errorCode = errorCode;
this.attributes = attributes;
this.remediatingAction = remediatingAction;
this.exception = exception;
}

@Override
public String errorCode()
{
return this.errorCode;
}

@Override
public Map<String, String> attributes()
{
return this.attributes;
}

@Override
public Optional<String> remediatingAction()
{
return this.remediatingAction;
}

@Override
public Optional<Throwable> exception()
{
return this.exception;
}
}

/**
* Exception fields work.
*
Expand Down

0 comments on commit 3a75733

Please sign in to comment.